summaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core/src
diff options
context:
space:
mode:
authoraclement <aclement>2005-01-31 13:59:04 +0000
committeraclement <aclement>2005-01-31 13:59:04 +0000
commit51aedc9a20c3c571f01bbfd79ca357759e008479 (patch)
tree445fe0db42f3272303aab0d216e8b68d86895b93 /org.aspectj.ajdt.core/src
parent3a977b2c73f9dffbf5a2f2274079053c7193a954 (diff)
downloadaspectj-51aedc9a20c3c571f01bbfd79ca357759e008479.tar.gz
aspectj-51aedc9a20c3c571f01bbfd79ca357759e008479.zip
Updates for annotation binding. Support for static methods !!
Diffstat (limited to 'org.aspectj.ajdt.core/src')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java1
1 files changed, 1 insertions, 0 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 659f92fc9..aac3ae533 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
@@ -233,6 +233,7 @@ public class EclipseSourceType extends ResolvedTypeX.ConcreteName {
public boolean hasAnnotation(TypeX ofType) {
Annotation[] as = declaration.annotations;
+ if (as == null) return false;
for (int i = 0; i < as.length; i++) {
Annotation annotation = as[i];
String tname = CharOperation.charToString(annotation.resolvedType.constantPoolName());