Browse Source

Fix 502119: InterTypeFieldBinding.java:122 - NullPointerException

tags/V1_8_10
Andy Clement 7 years ago
parent
commit
e8be95bbfd

+ 3
- 0
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/InterTypeFieldBinding.java View File

@@ -60,6 +60,9 @@ public class InterTypeFieldBinding extends FieldBinding {
// System.out.println("receiver: " + receiverType + ", " + invocationType);
ReferenceBinding declaringType = declaringClass;

if (invocationType == null) // static import call
return !isPrivate() && scope.getCurrentPackage() == receiverType.getPackage();

// FIXME asc what about parameterized types and private ITD generic fields on interfaces?

// Don't work with a raw type, work with the generic type

Loading…
Cancel
Save