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:
Dmitry Jemerov
2016-07-08 17:09:26 +02:00
parent 3aa1a56cb9
commit 00d651711a
@@ -659,7 +659,7 @@ public class ImplementationBodyCodegen extends ClassBodyCodegen {
Type type = typeMapper.mapType(propertyDescriptor.getType());
String fieldName = ((FieldOwnerContext) context.getParentContext()).getFieldName(propertyDescriptor, false);
iv.getfield(classAsmType.getInternalName(), fieldName, type.getDescriptor());
return type.getReturnType();
return type;
}
else {
//noinspection ConstantConditions