浏览代码

255555: pattern parser allowing for parentheses around declare anno signatures; cope with weaving broken code.

tags/V1_6_3rc1
aclement 15 年前
父节点
当前提交
2ceebd0571
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6
    2
      weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java

+ 6
- 2
weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java 查看文件

@@ -1582,8 +1582,12 @@ public class BcelWeaver {
private boolean applyDeclareAtType(DeclareAnnotation decA, ResolvedType onType, boolean reportProblems) {
boolean didSomething = false;
if (decA.matches(onType)) {

if (onType.hasAnnotation(decA.getAnnotationX().getType())) {
AnnotationAJ theAnnotation = decA.getAnnotationX();
// can be null for broken code!
if (theAnnotation == null) {
return false;
}
if (onType.hasAnnotation(theAnnotation.getType())) {
// Could put out a lint here for an already annotated type ...
// if (reportProblems) {
// world.getLint().elementAlreadyAnnotated.signal(

正在加载...
取消
保存