Do not report inspection "no reflection" in annotation entries
Annotation codegen shouldn't use something from reflection.jar
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user