fix incompatibility with ASM 6: don't call getReturnType() on a type which is not a method type (IDEA-158090)
This commit is contained in:
@@ -659,7 +659,7 @@ public class ImplementationBodyCodegen extends ClassBodyCodegen {
|
|||||||
Type type = typeMapper.mapType(propertyDescriptor.getType());
|
Type type = typeMapper.mapType(propertyDescriptor.getType());
|
||||||
String fieldName = ((FieldOwnerContext) context.getParentContext()).getFieldName(propertyDescriptor, false);
|
String fieldName = ((FieldOwnerContext) context.getParentContext()).getFieldName(propertyDescriptor, false);
|
||||||
iv.getfield(classAsmType.getInternalName(), fieldName, type.getDescriptor());
|
iv.getfield(classAsmType.getInternalName(), fieldName, type.getDescriptor());
|
||||||
return type.getReturnType();
|
return type;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
//noinspection ConstantConditions
|
//noinspection ConstantConditions
|
||||||
|
|||||||
Reference in New Issue
Block a user