summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2005-12-06 11:23:56 +0000
committeraclement <aclement>2005-12-06 11:23:56 +0000
commit58f365c7c52c5e367cad18a4819f7aef77404fb6 (patch)
tree76613da643834b73c971179ac2ea07b997cbbbfd /tests
parent3c8832b332f94bc05e7db48f414cc4a537407eb1 (diff)
downloadaspectj-58f365c7c52c5e367cad18a4819f7aef77404fb6.tar.gz
aspectj-58f365c7c52c5e367cad18a4819f7aef77404fb6.zip
first part of 117854
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs150/pr117854/BrokenSwitch.java14
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java1
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/ajc150.xml5
3 files changed, 20 insertions, 0 deletions
diff --git a/tests/bugs150/pr117854/BrokenSwitch.java b/tests/bugs150/pr117854/BrokenSwitch.java
new file mode 100644
index 000000000..2c3ab0395
--- /dev/null
+++ b/tests/bugs150/pr117854/BrokenSwitch.java
@@ -0,0 +1,14 @@
+public class BrokenSwitch {
+ public static void main(String []argv) {
+ int i = 1;
+ switch (i) {
+ case -845341380: System.err.println("a");break;
+ case 1730110032: System.err.println("a");break;
+ default: System.err.println("c");break;
+ }
+ }
+}
+
+aspect X {
+ before(): execution(* BrokenSwitch.main(..)) {}
+}
diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
index 42df7f208..3e7cb76d8 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
@@ -81,6 +81,7 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
public void testBadDecp_pr110788_3() { runTest("bad generic decp - 3");}
public void testBadDecp_pr110788_4() { runTest("bad generic decp - 4");}
+ public void testBrokenSwitch_pr117854() { runTest("broken switch transform");}
public void testVarargsITD_pr110906() { runTest("ITD varargs problem");}
public void testBadRenderer_pr86903() { runTest("bcelrenderer bad");}
//public void testIllegalInitialization_pr118326_1() { runTest("illegal initialization - 1");}
diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
index 17c763d7f..0c16fdc17 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
+++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
@@ -69,6 +69,11 @@
<run class="Pr114054"/>
</ajc-test>
+ <ajc-test dir="bugs150/pr117854" pr="117854" title="broken switch transform">
+ <compile files="BrokenSwitch.java" options=""/>
+ <run class="BrokenSwitch"/>
+ </ajc-test>
+
<ajc-test dir="bugs150/pr118599" pr="118599" title="ambiguous method when binary weaving - 1">
<!-- separate compilation was failing -->
<compile files="Attributable.java" outjar="foo.jar" options="-1.5"/>