--- /dev/null
+@interface A {
+ int i();
+}
+class C {
+ @A(wibble={},i=42)
+ public void xxx() {}
+}
\ No newline at end of file
*******************************************************************************/
package org.aspectj.systemtest.ajc180;
+import org.aspectj.systemtest.ajc181.Ajc181Tests;
+
import junit.framework.Test;
import junit.framework.TestSuite;
TestSuite suite = new TestSuite("AspectJ 1.8.0 tests");
// $JUnit-BEGIN$
suite.addTest(Ajc180Tests.suite());
+ suite.addTest(Ajc181Tests.suite());
// $JUnit-END$
return suite;
}
import junit.framework.Test;
+import org.aspectj.apache.bcel.classfile.Method;
import org.aspectj.testing.XMLBasedAjcTestCase;
/**
*/
public class Ajc181Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
+ public void testBrokenAnnotations_377096() throws Exception {
+ runTest("broken annotations");
+ Method method = getMethodFromClass(getClassFrom(ajc.getSandboxDirectory(), "C"), "xxx");
+ method.getAnnotations();
+ }
+
public void testDefaultMethods_433744() {
runTest("default methods");
}
<suite>
+ <ajc-test dir="bugs181/377096" title="broken annotations">
+ <compile options="-1.5 -proceedOnError" files="A.java">
+ <message kind="error" text="The attribute wibble is undefined for the annotation type A"/>
+ </compile>
+ </ajc-test>
+
<ajc-test dir="bugs181/433744" title="default methods">
<compile options="-1.8" files="AnIterator.java"/>
</ajc-test>