]> source.dussan.org Git - aspectj.git/commitdiff
first part of 117854
authoraclement <aclement>
Tue, 6 Dec 2005 11:23:56 +0000 (11:23 +0000)
committeraclement <aclement>
Tue, 6 Dec 2005 11:23:56 +0000 (11:23 +0000)
tests/bugs150/pr117854/BrokenSwitch.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
tests/src/org/aspectj/systemtest/ajc150/ajc150.xml

diff --git a/tests/bugs150/pr117854/BrokenSwitch.java b/tests/bugs150/pr117854/BrokenSwitch.java
new file mode 100644 (file)
index 0000000..2c3ab03
--- /dev/null
@@ -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(..)) {}
+}
index 42df7f208c6ff69d218d9b9de677f848ba7a86ea..3e7cb76d8eb95fbe9b3bb7ff33ca4c8aee07ffa5 100644 (file)
@@ -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");}
index 17c763d7f1d78431b28be751e24c69daab017988..0c16fdc17e973ac43823328209ccde7f39b91c5c 100644 (file)
      <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"/>