From bb77614623826008a4d0b7c5927b614478bc4096 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 13 Aug 2009 17:29:10 +0000 Subject: [PATCH] 286539: test and fix (decanno type in model) --- .../src/org/aspectj/weaver/bcel/BcelClassWeaver.java | 10 +++++----- 1 file 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() }); } } -- 2.39.5