Resolve annotations on all reflected elements

Annotation in NestedEnumArgument test is made public, because we try to load
annotation argument values eagerly and fail, since you can't invoke methods
reflectively on an object of a non-effectively-public class
This commit is contained in:
Alexander Udalov
2015-01-20 20:59:49 +03:00
parent c90f11b7e6
commit a14b301f31
9 changed files with 71 additions and 91 deletions
@@ -5,7 +5,7 @@ public class NestedEnumArgument {
FIRST
}
@interface Anno {
public @interface Anno {
E value();
}
@@ -4,8 +4,8 @@ public open class NestedEnumArgument {
public constructor NestedEnumArgument()
test.NestedEnumArgument.Anno(value = E.FIRST: test.NestedEnumArgument.E) public/*package*/ open fun foo(): kotlin.Unit
public/*package*/ final annotation class Anno : kotlin.Annotation {
public/*package*/ constructor Anno(/*0*/ value: test.NestedEnumArgument.E)
public final annotation class Anno : kotlin.Annotation {
public constructor Anno(/*0*/ value: test.NestedEnumArgument.E)
public abstract fun value(): test.NestedEnumArgument.E
}