diff options
author | aclement <aclement> | 2004-03-16 09:24:17 +0000 |
---|---|---|
committer | aclement <aclement> | 2004-03-16 09:24:17 +0000 |
commit | cb2aaacf5c3fd4a745fd708c89feaab18435b0e0 (patch) | |
tree | 23597914033f16f59a3de81fec41d92f0318cd9d /weaver/testsrc/org | |
parent | e6894a62dae5857568da40762c4f6daa6111fdb3 (diff) | |
download | aspectj-cb2aaacf5c3fd4a745fd708c89feaab18435b0e0.tar.gz aspectj-cb2aaacf5c3fd4a745fd708c89feaab18435b0e0.zip |
Fix for Bugzilla Bug 41181
Support SerialVersionUID field if no new fields declared on class
(Regenerated with BcweaverJarMaker)
Diffstat (limited to 'weaver/testsrc/org')
-rw-r--r-- | weaver/testsrc/org/aspectj/weaver/bcel/MoveInstructionsWeaveTestCase.java | 6 | ||||
-rw-r--r-- | weaver/testsrc/org/aspectj/weaver/bcel/WeaveTestCase.java | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/weaver/testsrc/org/aspectj/weaver/bcel/MoveInstructionsWeaveTestCase.java b/weaver/testsrc/org/aspectj/weaver/bcel/MoveInstructionsWeaveTestCase.java index 4e51ed2ad..955a893cd 100644 --- a/weaver/testsrc/org/aspectj/weaver/bcel/MoveInstructionsWeaveTestCase.java +++ b/weaver/testsrc/org/aspectj/weaver/bcel/MoveInstructionsWeaveTestCase.java @@ -36,7 +36,9 @@ public class MoveInstructionsWeaveTestCase extends WeaveTestCase { BcelShadow shadow = (BcelShadow) s; LazyMethodGen newMethod = shadow.extractMethod( - shadow.getSignature().getExtractableName() + "_extracted"); + shadow.getSignature().getExtractableName() + "_extracted", + 0, + this); shadow.getRange().append(shadow.makeCallToCallback(newMethod)); if (!shadow.isFallsThrough()) { @@ -58,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++); + LazyMethodGen newMethod = shadow.extractMethod(shadow.getSignature().getExtractableName() + "_extracted" + counter++, 0, this); shadow.getRange().append(shadow.makeCallToCallback(newMethod)); if (! shadow.isFallsThrough()) { diff --git a/weaver/testsrc/org/aspectj/weaver/bcel/WeaveTestCase.java b/weaver/testsrc/org/aspectj/weaver/bcel/WeaveTestCase.java index 9048a9afc..64171b9ac 100644 --- a/weaver/testsrc/org/aspectj/weaver/bcel/WeaveTestCase.java +++ b/weaver/testsrc/org/aspectj/weaver/bcel/WeaveTestCase.java @@ -154,7 +154,7 @@ public abstract class WeaveTestCase extends TestCase { } void realCheckClass(LazyClassGen gen, String outDir, String expectedFile) throws IOException { - TestUtil.assertMultiLineStringEquals("classes", + TestUtil.assertMultiLineStringEquals(expectedFile/*"classes"*/, FileUtil.readAsString(new File(TESTDATA_DIR, expectedFile)), gen.toLongString()); } |