--- /dev/null
+import org.aspectj.lang.annotation.*;
+
+class ClassMissingAspectAnnotation {
+
+ @Before("execution(* *(..))")
+ public void m() { }
+
+}
\ No newline at end of file
--- /dev/null
+import org.aspectj.lang.annotation.*;
+
+class ClassMissingAspectAnnotation {
+
+ @DeclareParents("*")
+ public java.io.Serializable s;
+
+}
\ No newline at end of file
// //parser.registerPointcutDesignatorHandler(beanHandler);
// runTest("new pointcut designators in a reference pointcut");
// }
-
+
+ public void testNoErrorForAtDecpInNormalClass_pr169428() { runTest( "no error for atDecp in normal class");}
+
public void testJarsZipsNonStandardSuffix_pr186673() { runTest("jars and zips with non-standard suffix");}
//public void testGenericTypeParameterizedWithArrayType_pr167197() { runTest("generic type parameterized with array type");}
<!-- AspectJ v1.6.0 Tests -->
<suite>
+
+ <ajc-test dir="bugs154/pr169428" title="no error for atDecp in normal class">
+ <compile options="-1.5" files="CorrectError.java">
+ <message kind="error" text="Advice must be declared inside an aspect type"/>
+ </compile>
+ <compile options="-1.5" files="NoError.java">
+ <message kind="error" text="DeclareParents can only be used inside an aspect type"/>
+ </compile>
+ </ajc-test>
+
<ajc-test dir="bugs154/pr176991" title="wrong number of type parameters">
<compile options="-1.5" files="AspectJBugTestCase.java"/>
</ajc-test>