From: aclement Date: Thu, 7 Feb 2008 17:00:27 +0000 (+0000) Subject: 218167: test and fix: compiler crash on multiple dec @fields X-Git-Tag: V1_6_0M2~62 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=067b7ef2939465a558812d2957c41c93fba8db61;p=aspectj.git 218167: test and fix: compiler crash on multiple dec @fields --- diff --git a/tests/bugs160/pr218167/Test.java b/tests/bugs160/pr218167/Test.java new file mode 100644 index 000000000..33d32e6b5 --- /dev/null +++ b/tests/bugs160/pr218167/Test.java @@ -0,0 +1,14 @@ +@interface A {} + +aspect Test { + declare @field : @A int var* : @A; + declare @field : int var* : @A; + + interface Subject {} + + public int Subject.vara; + public int Subject.varb; +} + +class X implements Test.Subject { +} \ No newline at end of file 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 @@ + + + + + +