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:
+2
-2
@@ -5,8 +5,8 @@ public annotation class Anno
|
||||
@kotlin.Metadata
|
||||
public final class TwoAnnotatedExtensionPropertiesWithoutBackingFieldsKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
private synthetic deprecated static @Anno method foo$annotations(p0: int): void
|
||||
private synthetic deprecated static @Anno method foo$annotations(p0: java.lang.String): void
|
||||
public synthetic deprecated static @Anno method foo$annotations(p0: int): void
|
||||
public synthetic deprecated static @Anno method foo$annotations(p0: java.lang.String): void
|
||||
public final static method getFoo(@org.jetbrains.annotations.NotNull p0: java.lang.String): int
|
||||
public final static method getFoo(p0: int): int
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user