]> source.dussan.org Git - aspectj.git/commitdiff
286539: test and fix (decanno type in model)
authoraclement <aclement>
Thu, 13 Aug 2009 17:29:10 +0000 (17:29 +0000)
committeraclement <aclement>
Thu, 13 Aug 2009 17:29:10 +0000 (17:29 +0000)
weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java

index f05f18413f5ec862237e56442c23ec59de12888a..fe2b6bb3d7b0539688c6ec1bdddf8b207171b937 100644 (file)
@@ -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() });
                                }
                        }