aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core/src
diff options
context:
space:
mode:
authoraclement <aclement>2011-06-20 17:11:24 +0000
committeraclement <aclement>2011-06-20 17:11:24 +0000
commit7dbb9f7d56b887cbd82021d5c3a3c5e8c1f3cfa7 (patch)
treecec364312a5219a6e70d5ef8d50899f957c56ce7 /org.aspectj.ajdt.core/src
parentbb2aea40a61fd4bd91d8a0b67cf7933ee728942e (diff)
downloadaspectj-7dbb9f7d56b887cbd82021d5c3a3c5e8c1f3cfa7.tar.gz
aspectj-7dbb9f7d56b887cbd82021d5c3a3c5e8c1f3cfa7.zip
349786
Diffstat (limited to 'org.aspectj.ajdt.core/src')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java
index 4e1a57769..ab743177f 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java
@@ -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()