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:
+1
-1
@@ -10,7 +10,7 @@ public annotation class a/A
|
||||
@kotlin.Metadata
|
||||
public final class a/MultifileClass {
|
||||
public final static @org.jetbrains.annotations.NotNull field OK: java.lang.String
|
||||
private synthetic deprecated static @a.A method OK$annotations(): void
|
||||
public synthetic deprecated static @a.A method OK$annotations(): void
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
|
||||
Reference in New Issue
Block a user