Browse Source

Fix 485448: Building Roo projects NPE in AnnotationDiscoveryVisitor

tags/V1_8_9
Andy Clement 8 years ago
parent
commit
e3d5df726f

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

@@ -1167,6 +1167,9 @@ public class AjLookupEnvironment extends LookupEnvironment implements AnonymousC
System.arraycopy(abefore, 0, newset, toAdd.length, abefore.length);
}
sourceType.scope.referenceContext.annotations = newset;
if ((sourceType.tagBits & TagBits.AnnotationResolved)!=0) {
sourceType.tagBits = sourceType.tagBits - TagBits.AnnotationResolved;
}
CompilationAndWeavingContext.leavingPhase(tok);
if (factory.pushinCollector != null) {
factory.pushinCollector.tagAsMunged(sourceType, new CommonPrinter((methodDecl == null ? null : methodDecl.scope))

BIN
org.eclipse.jdt.core/jdtcore-for-aspectj-src.zip View File


BIN
org.eclipse.jdt.core/jdtcore-for-aspectj.jar View File


Loading…
Cancel
Save