--- /dev/null
+@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
*/
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"); }
<!-- 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"/>