aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2006-07-05 08:36:09 +0000
committeraclement <aclement>2006-07-05 08:36:09 +0000
commit477c46dc2b5e2be500ea5281f09784d8b3d0cbde (patch)
treea12690aa15696ecc063afddfa48ebc93d24b5085 /tests
parent82f217fa97084beaa1c4c88ec2e96e4cf83e8aad (diff)
downloadaspectj-477c46dc2b5e2be500ea5281f09784d8b3d0cbde.tar.gz
aspectj-477c46dc2b5e2be500ea5281f09784d8b3d0cbde.zip
test for 148537
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs153/pr148537/MyClass.java8
-rw-r--r--tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java1
-rw-r--r--tests/src/org/aspectj/systemtest/ajc153/ajc153.xml4
3 files changed, 13 insertions, 0 deletions
diff --git a/tests/bugs153/pr148537/MyClass.java b/tests/bugs153/pr148537/MyClass.java
new file mode 100644
index 000000000..ef6eed9a5
--- /dev/null
+++ b/tests/bugs153/pr148537/MyClass.java
@@ -0,0 +1,8 @@
+import java.lang.annotation.*;
+
+public class MyClass {
+
+ @Retention({RententionPolicy.RUNTIME})
+ private @interface MyAnnotation {
+ }
+}
diff --git a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
index b9e03ed25..574a598dc 100644
--- a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
@@ -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");}
/////////////////////////////////////////
diff --git a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml
index c2722fc74..3d90e6194 100644
--- a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml
+++ b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml
@@ -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