Do not report inspection "no reflection" in annotation entries

Annotation codegen shouldn't use something from reflection.jar
This commit is contained in:
Denis Zharkov
2015-04-22 20:06:07 +03:00
parent 14df5b72b7
commit 470ad93328
3 changed files with 27 additions and 0 deletions
@@ -15,4 +15,12 @@
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Reflection not found</problem_class>
<description>Reflection not found in the classpath</description>
</problem>
<problem>
<file>withinAnnotationEntry.kt</file>
<line>13</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/withinAnnotationEntry.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Reflection not found</problem_class>
<description>Reflection not found in the classpath</description>
</problem>
</problems>
@@ -0,0 +1,15 @@
package test
// WITH_RUNTIME
import kotlin.reflect.KClass
annotation class A(val arg: KClass<*>, val args: Array<KClass<*>>, vararg val other: KClass<*>)
A(Int::class, array(String::class), Double::class, Char::class)
class MyClass {
throws(Exception::class)
fun foo() {
Exception::class
}
}