]> source.dussan.org Git - aspectj.git/commitdiff
349786
authoraclement <aclement>
Mon, 20 Jun 2011 17:11:24 +0000 (17:11 +0000)
committeraclement <aclement>
Mon, 20 Jun 2011 17:11:24 +0000 (17:11 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java

index 4e1a5776979ab04d7306161ba7de765fef9ccea8..ab743177f45bd3f2e7ee625afd7f0b17848ef1c0 100644 (file)
@@ -335,8 +335,8 @@ public class EclipseSourceType extends AbstractReferenceTypeDelegate {
                FormalBinding[] bindings = buildFormalAdviceBindingsFrom(md);
 
                ResolvedPointcutDefinition rpd = new LazyResolvedPointcutDefinition(factory.fromBinding(md.binding.declaringClass),
-                               md.modifiers, new String(md.selector), factory.fromBindings(md.binding.parameters), factory
-                                               .fromBinding(md.binding.returnType), pc, new EclipseScope(bindings, md.scope));
+                               md.modifiers, new String(md.selector), factory.fromBindings(md.binding.parameters),
+                               factory.fromBinding(md.binding.returnType), pc, new EclipseScope(bindings, md.scope));
 
                rpd.setPosition(md.sourceStart, md.sourceEnd);
                rpd.setSourceContext(eSourceContext);
@@ -822,7 +822,7 @@ public class EclipseSourceType extends AbstractReferenceTypeDelegate {
                                // if (defaultValue instanceof FalseLiteral) {
                                // new AnnotationValue
                                // } else if (defaultValue instanceof TrueLiteral) {
-                               //                                      
+                               //
                                // } else {
                                // throw new MissingImplementationException(
                                // "Please raise an AspectJ bug.  AspectJ does not know how to convert this annotation value ["
@@ -897,7 +897,8 @@ public class EclipseSourceType extends AbstractReferenceTypeDelegate {
                Annotation[] annotations = typeDeclaration.annotations;
                for (int i = 0; i < annotations.length; i++) {
                        Annotation annotation = annotations[i];
-                       if (CharOperation.equals(aspectSig, annotation.resolvedType.signature())) {
+                       if (annotation != null && annotation.resolvedType != null
+                                       && CharOperation.equals(aspectSig, annotation.resolvedType.signature())) {
                                // found @Aspect(...)
                                if (annotation.memberValuePairs() == null || annotation.memberValuePairs().length == 0) {
                                        // it is an @Aspect or @Aspect()