diff options
author | Andy Clement <aclement@pivotal.io> | 2016-11-10 14:07:57 -0800 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2016-11-10 14:07:57 -0800 |
commit | e8be95bbfd291f93319d1a1e9920e44cd7eb7569 (patch) | |
tree | 24a935bf934865e3d2a0fba9b8c0081281ffdaf7 | |
parent | f33db67c2e3d840b19896f4ec45dd1078eb412dc (diff) | |
download | aspectj-e8be95bbfd291f93319d1a1e9920e44cd7eb7569.tar.gz aspectj-e8be95bbfd291f93319d1a1e9920e44cd7eb7569.zip |
Fix 502119: InterTypeFieldBinding.java:122 - NullPointerException
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/InterTypeFieldBinding.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/InterTypeFieldBinding.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/InterTypeFieldBinding.java index 14f08f79a..c71d8e821 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/InterTypeFieldBinding.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/InterTypeFieldBinding.java @@ -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 |