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
+1
-1
@@ -8,5 +8,5 @@ public annotation class Ann {
|
||||
public final class PropertyWithoutBackingFieldKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method getProperty(): java.lang.String
|
||||
private synthetic deprecated static @Ann method property$annotations(): void
|
||||
public synthetic deprecated static @Ann method property$annotations(): void
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user