[JVM IR] Do not generate clinit as enclosing method.
The JVM and newer Android runtimes treats that the same as if there is no enclosing method. However, older Android runtimes for Android 5 and 6 throw exceptions on reflective access and even older runtimes have different behavior. To avoid those issues, exclude <clinit> from enclosing method attributes. ^ KT-48754 Fixed
This commit is contained in:
committed by
Alexander Udalov
parent
56867d9c7e
commit
b61389f6f9
+1
-1
@@ -43,7 +43,7 @@ public final class H1 {
|
||||
@kotlin.Metadata
|
||||
final class H2$Companion$property$2 {
|
||||
// source: 'delegatedPropertiesInCompanionObject.kt'
|
||||
enclosing method H2.<clinit>()V
|
||||
enclosing class H2
|
||||
public final static field INSTANCE: H2$Companion$property$2
|
||||
inner (anonymous) class H2$Companion$property$2
|
||||
static method <clinit>(): void
|
||||
|
||||
Reference in New Issue
Block a user