diff options
author | Andy Clement <aclement@pivotal.io> | 2015-11-19 08:54:14 -0800 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2015-11-19 08:54:14 -0800 |
commit | af8a5a2ac9a64e6f48101d7442024a685450285a (patch) | |
tree | 724fd5b796d73a7b8c98c26abf7f24f8cf928d7b /weaver/testsrc | |
parent | 0c818ae090e583cfa49407a0af17d1f1498f0a1f (diff) | |
download | aspectj-af8a5a2ac9a64e6f48101d7442024a685450285a.tar.gz aspectj-af8a5a2ac9a64e6f48101d7442024a685450285a.zip |
Fix 461323: around advice on default methods
Diffstat (limited to 'weaver/testsrc')
-rw-r--r-- | weaver/testsrc/org/aspectj/weaver/bcel/MoveInstructionsWeaveTestCase.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/weaver/testsrc/org/aspectj/weaver/bcel/MoveInstructionsWeaveTestCase.java b/weaver/testsrc/org/aspectj/weaver/bcel/MoveInstructionsWeaveTestCase.java index 0155cb03c..bd7c2ae65 100644 --- a/weaver/testsrc/org/aspectj/weaver/bcel/MoveInstructionsWeaveTestCase.java +++ b/weaver/testsrc/org/aspectj/weaver/bcel/MoveInstructionsWeaveTestCase.java @@ -39,7 +39,7 @@ public class MoveInstructionsWeaveTestCase extends WeaveTestCase { BcelShadow shadow = (BcelShadow) s; LazyMethodGen newMethod = shadow.extractShadowInstructionsIntoNewMethod(NameMangler.getExtractableName(shadow .getSignature()) - + "_extracted", 0, this.getSourceLocation(), new ArrayList()); + + "_extracted", 0, this.getSourceLocation(), new ArrayList(),shadow.getEnclosingClass().isInterface()); shadow.getRange().append(shadow.makeCallToCallback(newMethod)); if (!shadow.isFallsThrough()) { @@ -63,9 +63,10 @@ public class MoveInstructionsWeaveTestCase extends WeaveTestCase { public boolean implementOn(Shadow s) { BcelShadow shadow = (BcelShadow) s; - LazyMethodGen newMethod = shadow.extractShadowInstructionsIntoNewMethod(NameMangler.getExtractableName(shadow + LazyMethodGen newMethod = + shadow.extractShadowInstructionsIntoNewMethod(NameMangler.getExtractableName(shadow .getSignature()) - + "_extracted" + counter++, 0, this.getSourceLocation(), new ArrayList()); + + "_extracted" + counter++, 0, this.getSourceLocation(), new ArrayList(),shadow.getEnclosingClass().isInterface()); shadow.getRange().append(shadow.makeCallToCallback(newMethod)); if (!shadow.isFallsThrough()) { |