diff options
author | aclement <aclement> | 2006-07-05 09:35:47 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-07-05 09:35:47 +0000 |
commit | 7b526ecf23dc03453f8f8adb3a25c67b0a7018b8 (patch) | |
tree | 8fa5b7056359df546076313e4ab91e6cf9017307 /tests | |
parent | 477c46dc2b5e2be500ea5281f09784d8b3d0cbde (diff) | |
download | aspectj-7b526ecf23dc03453f8f8adb3a25c67b0a7018b8.tar.gz aspectj-7b526ecf23dc03453f8f8adb3a25c67b0a7018b8.zip |
test and fix for 148537
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs153/pr148537/MyClass.java | 2 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java | 2 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc153/ajc153.xml | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/tests/bugs153/pr148537/MyClass.java b/tests/bugs153/pr148537/MyClass.java index ef6eed9a5..ee449254c 100644 --- a/tests/bugs153/pr148537/MyClass.java +++ b/tests/bugs153/pr148537/MyClass.java @@ -2,7 +2,7 @@ import java.lang.annotation.*; public class MyClass { - @Retention({RententionPolicy.RUNTIME}) + @Retention({RetentionPolicy.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 574a598dc..8e09602c4 100644 --- a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java @@ -29,7 +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");} + 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 3d90e6194..4bc76dd65 100644 --- a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml +++ b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml @@ -43,7 +43,9 @@ </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> |