浏览代码

Declare annotation: cope with null symbolic declare

tags/V1_5_0M2
aclement 19 年前
父节点
当前提交
7dc7cdd9bd

+ 4
- 2
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++);

正在加载...
取消
保存