Fix for: KT-8089 NoSuchFieldError
#KT-8089 Fixed
This commit is contained in:
@@ -2239,7 +2239,14 @@ public class ExpressionCodegen extends JetVisitor<StackValue, StackValue> implem
|
||||
fieldName = ((FieldOwnerContext) backingFieldContext).getFieldName(propertyDescriptor, isDelegatedProperty);
|
||||
}
|
||||
else {
|
||||
fieldName = JvmAbi.getDefaultFieldNameForProperty(propertyDescriptor.getName(), isDelegatedProperty);
|
||||
Name name;
|
||||
if (propertyDescriptor instanceof AccessorForPropertyDescriptor) {
|
||||
name = ((AccessorForPropertyDescriptor) propertyDescriptor).getCalleeDescriptor().getName();
|
||||
}
|
||||
else {
|
||||
name = propertyDescriptor.getName();
|
||||
}
|
||||
fieldName = JvmAbi.getDefaultFieldNameForProperty(name, isDelegatedProperty);
|
||||
}
|
||||
|
||||
return StackValue.property(propertyDescriptor, backingFieldOwner,
|
||||
|
||||
Reference in New Issue
Block a user