diff options
author | aclement <aclement> | 2008-02-07 17:00:27 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-02-07 17:00:27 +0000 |
commit | 067b7ef2939465a558812d2957c41c93fba8db61 (patch) | |
tree | 2128f01de915137a2f78927e66d253c57da83cd0 /tests/src/org | |
parent | db0e7de7899794db02664dbd71ccafdb2dc89496 (diff) | |
download | aspectj-067b7ef2939465a558812d2957c41c93fba8db61.tar.gz aspectj-067b7ef2939465a558812d2957c41c93fba8db61.zip |
218167: test and fix: compiler crash on multiple dec @fields
Diffstat (limited to 'tests/src/org')
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java | 1 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc160/ajc160.xml | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java b/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java index 8d558576f..4e5aa1eea 100644 --- a/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java @@ -20,6 +20,7 @@ import junit.framework.Test; */ public class Ajc160Tests extends org.aspectj.testing.XMLBasedAjcTestCase { + public void testDecFieldProblem_pr218167() { runTest("dec field problem");} public void testGenericsSuperITD_pr206911() { runTest("generics super itd"); } public void testGenericsSuperITD_pr206911_2() { runTest("generics super itd - 2"); } diff --git a/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml b/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml index 92cd0fd66..ee5e64137 100644 --- a/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml +++ b/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml @@ -3,6 +3,12 @@ <!-- AspectJ v1.6.0 Tests --> <suite> + <ajc-test dir="bugs160/pr218167" title="dec field problem"> + <compile options="-1.5" files="Test.java"> + <message kind="warning" text="already has an annotation of type A, cannot add a second instance"/> + </compile> + </ajc-test> + <ajc-test dir="bugs160/pr206911" title="generics super itd"> <compile options="-1.5" files="VerifyError.java"/> <run class="bugs.VerifyError"/> |