summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2005-03-10 20:35:44 +0000
committeraclement <aclement>2005-03-10 20:35:44 +0000
commit7dc7cdd9bdd7ca902785e4037c6893fe1c5f1418 (patch)
tree02e0231251d2fc7c659a7fc0d1ab0ee7b96226f5
parent6ee78b248060211df114f28d0ad2b4d26ec726ff (diff)
downloadaspectj-7dc7cdd9bdd7ca902785e4037c6893fe1c5f1418.tar.gz
aspectj-7dc7cdd9bdd7ca902785e4037c6893fe1c5f1418.zip
Declare annotation: cope with null symbolic declare
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/DeclareDeclaration.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/DeclareDeclaration.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/DeclareDeclaration.java
index 99b67c713..990b3daaa 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/DeclareDeclaration.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/DeclareDeclaration.java
@@ -50,10 +50,12 @@ public class DeclareDeclaration extends AjMethodDeclaration {
sb.append("ajc$declare");
// Declares can choose to provide a piece of the name - to enable
// them to be easily distinguised at weave time (e.g. see declare annotation)
- String suffix = symbolicDeclare.getNameSuffix();
- if (suffix.length()!=0) {
+ if (symbolicDeclare!=null) {
+ String suffix = symbolicDeclare.getNameSuffix();
+ if (suffix.length()!=0) {
sb.append("_");
sb.append(suffix);
+ }
}
sb.append("_");
sb.append(counter++);