]> source.dussan.org Git - aspectj.git/commitdiff
Fix 502119: InterTypeFieldBinding.java:122 - NullPointerException
authorAndy Clement <aclement@pivotal.io>
Thu, 10 Nov 2016 22:07:57 +0000 (14:07 -0800)
committerAndy Clement <aclement@pivotal.io>
Thu, 10 Nov 2016 22:07:57 +0000 (14:07 -0800)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/InterTypeFieldBinding.java

index 14f08f79a23dbf24f764f4402078780aaffcafb6..c71d8e821e5280b7c02e17d2fc34659b1a953a0a 100644 (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