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:
@@ -5,7 +5,7 @@ public final class A {
|
||||
private static field b: int
|
||||
private static field c: int
|
||||
private method <init>(): void
|
||||
private synthetic deprecated static @kotlin.jvm.JvmStatic method a$annotations(): void
|
||||
public synthetic deprecated static @kotlin.jvm.JvmStatic method a$annotations(): void
|
||||
public final static method getA(): int
|
||||
public final static @kotlin.jvm.JvmStatic method getB(): int
|
||||
public final method getC(): int
|
||||
|
||||
Reference in New Issue
Block a user