]> source.dussan.org Git - aspectj.git/commitdiff
fix concurrentmod exception
authoraclement <aclement>
Thu, 28 Aug 2008 02:16:37 +0000 (02:16 +0000)
committeraclement <aclement>
Thu, 28 Aug 2008 02:16:37 +0000 (02:16 +0000)
weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java

index ac96c39a8b6c812e2939e1bd62915df235b08ab1..433a213f86f4d2bf112811262922fbdca6cf61a2 100644 (file)
@@ -1093,13 +1093,11 @@ public final class LazyMethodGen implements Traceable {
                        if (inst instanceof InstructionBranch) {
                                branchInstructions.add(iHandle);
                        }
-                       Iterator tIter = iHandle.getTargeters().iterator();
-                       while (tIter.hasNext()) {
                                
-//              InstructionTargeter[] targeters = iHandle.getTargetersArray();
-//              if (targeters != null) {
-//                  for (int k = targeters.length - 1; k >= 0; k--) {
-                      InstructionTargeter targeter = (InstructionTargeter)tIter.next();//targeters[k];
+              InstructionTargeter[] targeters = iHandle.getTargetersArray();
+              if (targeters != null) {
+                  for (int k = targeters.length - 1; k >= 0; k--) {
+                      InstructionTargeter targeter = targeters[k];
                       if (targeter instanceof LineNumberTag) {
                           int line = ((LineNumberTag)targeter).getLineNumber();
                           if (line != currLine) {
@@ -1118,7 +1116,7 @@ public final class LazyMethodGen implements Traceable {
                           } else {
                                  p.end = iHandle;
                           }
-//                      }
+                      }
                   }
               }
                }