628d75c7cd
Pass parentContext to SamWrapperCodegen from the outside instead of using the one from parentCodegen. The difference is that in case of an inline lambda, we're creating an InlineLambdaContext whose parent is a ClosureContext, but the codegen for that lambda has that latter ClosureContext as its context. So the getNonInlineOuterContext call in SamWrapperCodegen.generateInnerClassInformation wasn't able to identify that this is a context of a lambda that needs to be skipped, and generated it as EnclosingMethod, which caused Java reflection to fail because once that lambda was inlined, it was removed and thus didn't make it to runtime. #KT-44827 Fixed
51 lines
1.5 KiB
Plaintext
Vendored
51 lines
1.5 KiB
Plaintext
Vendored
@kotlin.Metadata
|
|
synthetic final class A$sam$java_lang_Runnable$0 {
|
|
// source: 'reusedSamWrapperClasses.kt'
|
|
enclosing method A.test1()V
|
|
private synthetic final field function: kotlin.jvm.functions.Function0
|
|
inner (anonymous) class A$sam$java_lang_Runnable$0
|
|
method <init>(p0: kotlin.jvm.functions.Function0): void
|
|
public synthetic final method run(): void
|
|
}
|
|
|
|
@kotlin.Metadata
|
|
final class A$test1$f$1 {
|
|
// source: 'reusedSamWrapperClasses.kt'
|
|
enclosing method A.test1()V
|
|
public final static field INSTANCE: A$test1$f$1
|
|
inner (anonymous) class A$test1$f$1
|
|
static method <clinit>(): void
|
|
method <init>(): void
|
|
public synthetic bridge method invoke(): java.lang.Object
|
|
public final method invoke(): void
|
|
}
|
|
|
|
@kotlin.Metadata
|
|
public final class A {
|
|
// source: 'reusedSamWrapperClasses.kt'
|
|
inner (anonymous) class A$sam$java_lang_Runnable$0
|
|
inner (anonymous) class A$test1$f$1
|
|
public method <init>(): void
|
|
public final method test1(): void
|
|
}
|
|
|
|
@kotlin.Metadata
|
|
final class B$test2$f$1 {
|
|
// source: 'reusedSamWrapperClasses.kt'
|
|
enclosing method B.test2()V
|
|
public final static field INSTANCE: B$test2$f$1
|
|
inner (anonymous) class B$test2$f$1
|
|
static method <clinit>(): void
|
|
method <init>(): void
|
|
public synthetic bridge method invoke(): java.lang.Object
|
|
public final method invoke(): void
|
|
}
|
|
|
|
@kotlin.Metadata
|
|
public final class B {
|
|
// source: 'reusedSamWrapperClasses.kt'
|
|
inner (anonymous) class B$test2$f$1
|
|
public method <init>(): void
|
|
public final method test2(): void
|
|
}
|