aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2009-08-13 17:29:10 +0000
committeraclement <aclement>2009-08-13 17:29:10 +0000
commitbb77614623826008a4d0b7c5927b614478bc4096 (patch)
tree798fec8100f3939ebd862777fac722c5180e55a8
parent476538d776e653badae0de87c14a6030b338ea7d (diff)
downloadaspectj-bb77614623826008a4d0b7c5927b614478bc4096.tar.gz
aspectj-bb77614623826008a4d0b7c5927b614478bc4096.zip
286539: test and fix (decanno type in model)
-rw-r--r--weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java10
1 files changed, 5 insertions, 5 deletions
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() });
}
}