From: aclement Date: Thu, 13 Aug 2009 17:29:10 +0000 (+0000) Subject: 286539: test and fix (decanno type in model) X-Git-Tag: PRE_J5~22 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bb77614623826008a4d0b7c5927b614478bc4096;p=aspectj.git 286539: test and fix (decanno type in model) --- diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java b/weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java index f05f18413..fe2b6bb3d 100644 --- a/weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java +++ b/weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java @@ -1154,8 +1154,8 @@ class BcelClassWeaver implements IClassWeaver { modificationOccured = true; forRemoval.add(decaF); } - worthRetrying.removeAll(forRemoval); } + worthRetrying.removeAll(forRemoval); } } return isChanged; @@ -1444,13 +1444,13 @@ class BcelClassWeaver implements IClassWeaver { * Check if a resolved member (field/method/ctor) already has an annotation, if it does then put out a warning and return true */ private boolean doesAlreadyHaveAnnotation(ResolvedMember rm, DeclareAnnotation deca, List reportedProblems) { - if (rm.hasAnnotation(deca.getAnnotationTypeX())) { + if (rm.hasAnnotation(deca.getAnnotationType())) { if (world.getLint().elementAlreadyAnnotated.isEnabled()) { Integer uniqueID = new Integer(rm.hashCode() * deca.hashCode()); if (!reportedProblems.contains(uniqueID)) { reportedProblems.add(uniqueID); world.getLint().elementAlreadyAnnotated.signal(new String[] { rm.toString(), - deca.getAnnotationTypeX().toString() }, rm.getSourceLocation(), new ISourceLocation[] { deca + deca.getAnnotationType().toString() }, rm.getSourceLocation(), new ISourceLocation[] { deca .getSourceLocation() }); } } @@ -1461,14 +1461,14 @@ class BcelClassWeaver implements IClassWeaver { private boolean doesAlreadyHaveAnnotation(LazyMethodGen rm, ResolvedMember itdfieldsig, DeclareAnnotation deca, List reportedProblems) { - if (rm != null && rm.hasAnnotation(deca.getAnnotationTypeX())) { + if (rm != null && rm.hasAnnotation(deca.getAnnotationType())) { if (world.getLint().elementAlreadyAnnotated.isEnabled()) { Integer uniqueID = new Integer(rm.hashCode() * deca.hashCode()); if (!reportedProblems.contains(uniqueID)) { reportedProblems.add(uniqueID); reportedProblems.add(new Integer(itdfieldsig.hashCode() * deca.hashCode())); world.getLint().elementAlreadyAnnotated.signal(new String[] { itdfieldsig.toString(), - deca.getAnnotationTypeX().toString() }, rm.getSourceLocation(), new ISourceLocation[] { deca + deca.getAnnotationType().toString() }, rm.getSourceLocation(), new ISourceLocation[] { deca .getSourceLocation() }); } }