Browse Source

Declare annotation: cope with null symbolic declare

tags/V1_5_0M2
aclement 19 years ago
parent
commit
7dc7cdd9bd

+ 4
- 2
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/DeclareDeclaration.java View File

@@ -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++);

Loading…
Cancel
Save