aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Clement <andrew.clement@gmail.com>2012-04-05 15:17:56 -0700
committerAndy Clement <andrew.clement@gmail.com>2012-04-05 15:17:56 -0700
commit62fca9a2dd7c7a0f9eef9b2186f82fd8e695162b (patch)
treee74acdf6e9a788963987bb61f6c92189765ddba1
parentf340cea270dbc56dde9a938bd9c88c89f88e4db5 (diff)
downloadaspectj-62fca9a2dd7c7a0f9eef9b2186f82fd8e695162b.tar.gz
aspectj-62fca9a2dd7c7a0f9eef9b2186f82fd8e695162b.zip
pr376139
-rw-r--r--org.eclipse.jdt.core/jdtcore-for-aspectj-src.zipbin3868143 -> 3868146 bytes
-rw-r--r--org.eclipse.jdt.core/jdtcore-for-aspectj.jarbin7145398 -> 7145455 bytes
-rw-r--r--tests/bugs170/pr376139/Code.java10
-rw-r--r--tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java3
-rw-r--r--tests/src/org/aspectj/systemtest/ajc170/ajc170.xml5
5 files changed, 18 insertions, 0 deletions
diff --git a/org.eclipse.jdt.core/jdtcore-for-aspectj-src.zip b/org.eclipse.jdt.core/jdtcore-for-aspectj-src.zip
index b8475a7d4..d2731ca33 100644
--- a/org.eclipse.jdt.core/jdtcore-for-aspectj-src.zip
+++ b/org.eclipse.jdt.core/jdtcore-for-aspectj-src.zip
Binary files differ
diff --git a/org.eclipse.jdt.core/jdtcore-for-aspectj.jar b/org.eclipse.jdt.core/jdtcore-for-aspectj.jar
index 8d30b4ad6..9017b0d5e 100644
--- a/org.eclipse.jdt.core/jdtcore-for-aspectj.jar
+++ b/org.eclipse.jdt.core/jdtcore-for-aspectj.jar
Binary files differ
diff --git a/tests/bugs170/pr376139/Code.java b/tests/bugs170/pr376139/Code.java
new file mode 100644
index 000000000..b3c97378e
--- /dev/null
+++ b/tests/bugs170/pr376139/Code.java
@@ -0,0 +1,10 @@
+enum Color { R,G,B; }
+
+public class Code {
+
+ public static void main(String[] argv) {
+ Color c = Color.R;
+ switch (c) {
+ }
+ }
+}
diff --git a/tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java b/tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java
index c78bd02bd..643340944 100644
--- a/tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java
@@ -31,6 +31,9 @@ import org.aspectj.weaver.tools.StandardPointcutParser;
*/
public class Ajc170Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
+ public void testSwitchOnEnum() {
+ runTest("switch on enum");
+ }
public void testDecAtFieldOrderingLTW1() {
runTest("dec at field ordering ltw 1");
diff --git a/tests/src/org/aspectj/systemtest/ajc170/ajc170.xml b/tests/src/org/aspectj/systemtest/ajc170/ajc170.xml
index 953edf874..5bf94415c 100644
--- a/tests/src/org/aspectj/systemtest/ajc170/ajc170.xml
+++ b/tests/src/org/aspectj/systemtest/ajc170/ajc170.xml
@@ -3,6 +3,11 @@
<suite>
+ <ajc-test dir="bugs170/pr376139" title="switch on enum">
+ <compile files="Code.java" options="-1.5"/>
+ <run class="Code"/>
+ </ajc-test>
+
<ajc-test dir="bugs170/ltw" title="dec at field ordering 1">
<compile files="Anno.java TriggerAll.java MyObject.java Main.java" options="-1.5"/>
<run class="ch.tests.Main">