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:
Vendored
+3
-3
@@ -21,7 +21,7 @@ public final class Test {
|
||||
public final static @org.jetbrains.annotations.NotNull method getTestK(): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method getTestO(): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method getTestOK(): java.lang.String
|
||||
private synthetic deprecated static @kotlin.jvm.JvmStatic method testK$annotations(): void
|
||||
private synthetic deprecated static @kotlin.jvm.JvmStatic method testO$annotations(): void
|
||||
private synthetic deprecated static @kotlin.jvm.JvmStatic method testOK$annotations(): void
|
||||
public synthetic deprecated static @kotlin.jvm.JvmStatic method testK$annotations(): void
|
||||
public synthetic deprecated static @kotlin.jvm.JvmStatic method testO$annotations(): void
|
||||
public synthetic deprecated static @kotlin.jvm.JvmStatic method testOK$annotations(): void
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user