]> source.dussan.org Git - aspectj.git/commitdiff
test for 148537
authoraclement <aclement>
Wed, 5 Jul 2006 08:36:09 +0000 (08:36 +0000)
committeraclement <aclement>
Wed, 5 Jul 2006 08:36:09 +0000 (08:36 +0000)
tests/bugs153/pr148537/MyClass.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
tests/src/org/aspectj/systemtest/ajc153/ajc153.xml

diff --git a/tests/bugs153/pr148537/MyClass.java b/tests/bugs153/pr148537/MyClass.java
new file mode 100644 (file)
index 0000000..ef6eed9
--- /dev/null
@@ -0,0 +1,8 @@
+import java.lang.annotation.*;
+
+public class MyClass {
+
+        @Retention({RententionPolicy.RUNTIME})
+        private @interface MyAnnotation {
+        }
+}
index b9e03ed2531f428ebc3546a12483e94329cbdefc..574a598dca958477fef8c1228812a461536674c7 100644 (file)
@@ -29,6 +29,7 @@ public class Ajc153Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
        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");}
 
   
   /////////////////////////////////////////
index c2722fc740ddac47688c52f10b976a4c3b65d171..3d90e619497f67a9bbb93dabe573bfaa6876f2f9 100644 (file)
@@ -42,5 +42,9 @@
                <compile files="MyAspect.java" options="-1.5 -XterminateAfterCompilation=true"/>
     </ajc-test>
     
+    <ajc-test dir="bugs153/pr148537" title="incorrect annotation value">
+               <compile files="MyClass.java" options="-1.5"/>
+    </ajc-test>
+    
     
 </suite>
\ No newline at end of file