From: aclement Date: Wed, 24 Sep 2008 16:07:56 +0000 (+0000) Subject: 245307: comment #6 X-Git-Tag: V1_6_2~38 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7e2af95037db83eb79e5c51f2b48e5bd9010c34e;p=aspectj.git 245307: comment #6 --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java index 19327ed80..06d3191fd 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java @@ -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) {