mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 00:21:32 +00:00
Before this change such wrapping happened only during coercion, i.e. when a call-site expected a KClass instance. But when call-site expects Any, for example, no wrapping happened, and raw j.l.Class instance was left on stack. The solution is to put wrapping code closer to generation of annotation's method call itself to guarantee that necessary wrapping will happen. #KT-9453 Fixed
14 lines
450 B
Plaintext
Vendored
14 lines
450 B
Plaintext
Vendored
@java.lang.annotation.Retention
|
|
@kotlin.Metadata
|
|
public annotation class Anno {
|
|
public abstract method kClasses(): java.lang.Class[]
|
|
public abstract method kClassesVararg(): java.lang.Class[]
|
|
public abstract method klass(): java.lang.Class
|
|
}
|
|
|
|
@kotlin.Metadata
|
|
public final class ForceWrappingKt {
|
|
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
|
public final static @Anno method foo(): void
|
|
}
|