]> source.dussan.org Git - aspectj.git/commitdiff
245307: comment #6
authoraclement <aclement>
Wed, 24 Sep 2008 16:07:56 +0000 (16:07 +0000)
committeraclement <aclement>
Wed, 24 Sep 2008 16:07:56 +0000 (16:07 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java

index 19327ed8065ddc18635863d1a3400e3b6c74712f..06d3191fdab28c961535996d554158120948f593 100644 (file)
@@ -281,7 +281,13 @@ public class AsmHierarchyBuilder extends ASTVisitor {
                                if (Arrays.equals(annotation.type.getTypeBindingPublic(scope).signature(), "Lorg/aspectj/lang/annotation/Aspect;"
                                                .toCharArray())) {
                                        kind = IProgramElement.Kind.ASPECT;
-                               } else {
+                               } else if(annotation.resolvedType != null) {
+                                       // Fix for the case where in a privileged aspect a parent declaration :
+                                       //                      declare parents: (@A C+) implements (B);
+                                       // is causing the resolvedType to be null when it shouldn't
+                                       // for the aspect and privileged annotation of that aspect.
+                                       
+                                       
                                        // Creating the char[][] needed for ImportReference
                                        String[] temp = (new String(annotation.resolvedType.constantPoolName())).split("/");
                                        if (temp.length > 1) {