diff options
author | jhugunin <jhugunin> | 2003-07-16 23:19:54 +0000 |
---|---|---|
committer | jhugunin <jhugunin> | 2003-07-16 23:19:54 +0000 |
commit | 13b319a40f353f3c07eb0a7c4a40f3e3f6381573 (patch) | |
tree | b7fba5c142a0c52b7863179e4904f2c3274bb1dd /tests/ajcTests.xml | |
parent | cd9946a959b393d386ea893f007b9cd2adbac74c (diff) | |
download | aspectj-13b319a40f353f3c07eb0a7c4a40f3e3f6381573.tar.gz aspectj-13b319a40f353f3c07eb0a7c4a40f3e3f6381573.zip |
Fix for Bugzilla #39479, #40109
based on patch contributed by Andy Clement
Generalizes the patch with a method org.aspectj.weaver.bcel.Utility.copyInstruction
that works-around the bug in Select.copy(). Changed all calls to
Instruction.copy() to use this new method, would be nice to add the
rule:
* declare error:
* call(* Instruction.copy()) && within(org.aspectj.weaver)
* && !withincode(* Utility.copyInstruction(Instruction)):
* "use Utility.copyInstruction to work-around bug in Select.copy()";
Diffstat (limited to 'tests/ajcTests.xml')
-rw-r--r-- | tests/ajcTests.xml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ajcTests.xml b/tests/ajcTests.xml index 8cf4bbc76..eed7526f9 100644 --- a/tests/ajcTests.xml +++ b/tests/ajcTests.xml @@ -6408,4 +6408,16 @@ <message kind="error" line="13"/> </compile> </ajc-test> + + <ajc-test dir="bugs" pr="39479" + title="NPE in bcel.LazyMethodGen when delegating from one ctor to a second that includes a switch"> + <compile files="NewSwitch.java"/> + <run class="NewSwitch"/> + </ajc-test> + + <ajc-test dir="bugs" pr="40109" + title="switch statement in aspects crashes weaving"> + <compile files="SwitchInAround.java"/> + <run class="SwitchInAround"/> + </ajc-test> </suite> |