diff options
author | Andy Clement <andrew.clement@gmail.com> | 2012-04-05 15:17:56 -0700 |
---|---|---|
committer | Andy Clement <andrew.clement@gmail.com> | 2012-04-05 15:17:56 -0700 |
commit | 62fca9a2dd7c7a0f9eef9b2186f82fd8e695162b (patch) | |
tree | e74acdf6e9a788963987bb61f6c92189765ddba1 | |
parent | f340cea270dbc56dde9a938bd9c88c89f88e4db5 (diff) | |
download | aspectj-62fca9a2dd7c7a0f9eef9b2186f82fd8e695162b.tar.gz aspectj-62fca9a2dd7c7a0f9eef9b2186f82fd8e695162b.zip |
pr376139
-rw-r--r-- | org.eclipse.jdt.core/jdtcore-for-aspectj-src.zip | bin | 3868143 -> 3868146 bytes | |||
-rw-r--r-- | org.eclipse.jdt.core/jdtcore-for-aspectj.jar | bin | 7145398 -> 7145455 bytes | |||
-rw-r--r-- | tests/bugs170/pr376139/Code.java | 10 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java | 3 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc170/ajc170.xml | 5 |
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 Binary files differindex b8475a7d4..d2731ca33 100644 --- a/org.eclipse.jdt.core/jdtcore-for-aspectj-src.zip +++ b/org.eclipse.jdt.core/jdtcore-for-aspectj-src.zip diff --git a/org.eclipse.jdt.core/jdtcore-for-aspectj.jar b/org.eclipse.jdt.core/jdtcore-for-aspectj.jar Binary files differindex 8d30b4ad6..9017b0d5e 100644 --- a/org.eclipse.jdt.core/jdtcore-for-aspectj.jar +++ b/org.eclipse.jdt.core/jdtcore-for-aspectj.jar 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"> |