Fix test, remove duplicate annotation
It started to fail only now because KClassImpl constructor is now loading class' annotations (previously annotations weren't loaded by Java reflection)
This commit is contained in:
+6
-4
@@ -3,8 +3,10 @@ import java.lang.annotation.RetentionPolicy
|
||||
import a.*
|
||||
|
||||
Ann(i, s, f, d, l, b, bool, c, str)
|
||||
class MyClass1
|
||||
|
||||
Ann(i2, s2, f2, d2, l2, b2, bool2, c2, str2)
|
||||
class MyClass
|
||||
class MyClass2
|
||||
|
||||
Retention(RetentionPolicy.RUNTIME)
|
||||
annotation class Ann(
|
||||
@@ -20,7 +22,7 @@ annotation class Ann(
|
||||
)
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
MyClass()
|
||||
// Trigger annotation loading
|
||||
(MyClass1() as java.lang.Object).getClass().getAnnotations()
|
||||
(MyClass2() as java.lang.Object).getClass().getAnnotations()
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user