public class MyClass {
- @Retention({RententionPolicy.RUNTIME})
+ @Retention({RetentionPolicy.RUNTIME})
private @interface MyAnnotation {
}
}
runTest("verification problem"); // build the code
Utils.verifyClass(ajc,"mypackage.MyAspect"); // verify it <<< BRAND NEW VERIFY UTILITY FOR EVERYONE TO TRY ;)
}
- // public void testIncorrectAnnotationValue_pr148537() { runTest("incorrect annotation value");}
+ public void testIncorrectAnnotationValue_pr148537() { runTest("incorrect annotation value");}
/////////////////////////////////////////
</ajc-test>
<ajc-test dir="bugs153/pr148537" title="incorrect annotation value">
- <compile files="MyClass.java" options="-1.5"/>
+ <compile files="MyClass.java" options="-1.5">
+ <message kind="error" line="5" text="Type mismatch: cannot convert from RetentionPolicy[] to RetentionPolicy"/>
+ </compile>
</ajc-test>