Explicitly pass jvmDefaultMode

This commit is contained in:
Mikhael Bogdanov
2020-02-03 15:43:40 +01:00
committed by Mikhail Bogdanov
parent 954ef7d7d6
commit bfd709290b
17 changed files with 81 additions and 62 deletions
@@ -248,7 +248,12 @@ private fun KtUltraLightClass.lightMethod(
val name = if (descriptor is ConstructorDescriptor) name else support.typeMapper.mapFunctionName(descriptor, OwnerKind.IMPLEMENTATION)
val accessFlags: Int by lazyPub {
val asmFlags = AsmUtil.getMethodAsmFlags(descriptor, OwnerKind.IMPLEMENTATION, support.deprecationResolver)
val asmFlags = AsmUtil.getMethodAsmFlags(
descriptor,
OwnerKind.IMPLEMENTATION,
support.deprecationResolver,
support.typeMapper.jvmDefaultMode,
)
packMethodFlags(asmFlags, JvmCodegenUtil.isJvmInterface(kotlinOrigin.resolve() as? ClassDescriptor))
}