]> source.dussan.org Git - aspectj.git/commitdiff
231396: refactoring AspectJ: use getExtractableName() at new location
authoraclement <aclement>
Fri, 6 Jun 2008 16:14:57 +0000 (16:14 +0000)
committeraclement <aclement>
Fri, 6 Jun 2008 16:14:57 +0000 (16:14 +0000)
weaver/testsrc/org/aspectj/weaver/bcel/MoveInstructionsWeaveTestCase.java

index 2ece47f23fd074281f04b9dc1f82f2b663839363..04c00dc39c1d18a7c1a6b869fdeb383e494999e0 100644 (file)
@@ -36,7 +36,7 @@ public class MoveInstructionsWeaveTestCase extends WeaveTestCase {
                                BcelShadow shadow = (BcelShadow) s;
                                LazyMethodGen newMethod =
                                        shadow.extractMethod(
-                                               shadow.getSignature().getExtractableName() + "_extracted",
+                                               NameMangler.getExtractableName(shadow.getSignature()) + "_extracted",
                                                0,
                                                this);
                                shadow.getRange().append(shadow.makeCallToCallback(newMethod));
@@ -60,7 +60,7 @@ public class MoveInstructionsWeaveTestCase extends WeaveTestCase {
             }
             public void implementOn(Shadow s) {
                 BcelShadow shadow = (BcelShadow) s;
-                LazyMethodGen newMethod = shadow.extractMethod(shadow.getSignature().getExtractableName() + "_extracted" + counter++, 0, this);
+                LazyMethodGen newMethod = shadow.extractMethod(NameMangler.getExtractableName(shadow.getSignature()) + "_extracted" + counter++, 0, this);
                 shadow.getRange().append(shadow.makeCallToCallback(newMethod));
 
                 if (! shadow.isFallsThrough()) {