6c989bfd4b
KotlinJvmBinaryClass.AnnotationArrayArgumentVisitor didn't cover the
case when the element type is an Annotation. Therefore, when the
compiler read an array of annotations from JVM binary classes built from
Kotlin sources, it got an empty array regardless of what was written in
the bytecode.
For example, Foo.value below is read as an empty array when SomeClass
resides in another Kotlin module.
@Foo(
value = [Bar(1), Bar(2)]
)
class SomeClass
21 lines
673 B
Plaintext
Vendored
21 lines
673 B
Plaintext
Vendored
public final annotation class Anno : R|kotlin/Annotation| {
|
|
public final val value: R|kotlin/Array<test/Bnno>|
|
|
public get(): R|kotlin/Array<test/Bnno>|
|
|
|
|
public constructor(value: R|kotlin/Array<test/Bnno>|): R|test/Anno|
|
|
|
|
}
|
|
|
|
@R|test/Anno|(value = <implicitArrayOf>(@R|test/Bnno|(value = String(x)) , @R|test/Bnno|(value = String(y)) )) public final class AnnotationInArray : R|kotlin/Any| {
|
|
public constructor(): R|test/AnnotationInArray|
|
|
|
|
}
|
|
|
|
public final annotation class Bnno : R|kotlin/Annotation| {
|
|
public final val value: R|kotlin/String|
|
|
public get(): R|kotlin/String|
|
|
|
|
public constructor(value: R|kotlin/String|): R|test/Bnno|
|
|
|
|
}
|