Do not generate postponed initialization method for part class as synchronized.

This commit is contained in:
Dmitry Petrov
2016-04-04 18:50:20 +03:00
parent f9bef68e10
commit fe7f7ceed5
@@ -59,7 +59,7 @@ class MultifileClassPartCodegen(
FINAL_PART_CLASS_ATTRIBUTES
private fun ClassBuilder.newSpecialMethod(originDescriptor: DeclarationDescriptor, name: String) =
newMethod(OtherOrigin(originDescriptor), Opcodes.ACC_STATIC or Opcodes.ACC_SUPER, name, "()V", null, null)
newMethod(OtherOrigin(originDescriptor), Opcodes.ACC_STATIC, name, "()V", null, null)
private val staticInitClassBuilder = ClassBuilderOnDemand {
state.factory.newVisitor(MultifileClass(file, packageFragment), staticInitClassType, file).apply {