Do not always generate synthetic "$annotations" as private
Since annotations are a part of the declaration, they must have the same visibility as the declaration in the bytecode. Otherwise obfuscators like Proguard might strip the "$annotations" method and no annotations would be found via Kotlin reflection #KT-15993 Fixed
This commit is contained in:
@@ -4,7 +4,7 @@ public final class A {
|
||||
private final static @org.jetbrains.annotations.NotNull field b: java.lang.String
|
||||
private final static @org.jetbrains.annotations.NotNull field c: java.lang.String
|
||||
private method <init>(): void
|
||||
private synthetic deprecated static @kotlin.jvm.JvmStatic method c$annotations(): void
|
||||
public synthetic deprecated static @kotlin.jvm.JvmStatic method c$annotations(): void
|
||||
public final @org.jetbrains.annotations.NotNull method getB(): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method getC(): java.lang.String
|
||||
public final static @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull method test1(): java.lang.String
|
||||
|
||||
Reference in New Issue
Block a user