diff options
author | aclement <aclement> | 2006-08-18 08:21:58 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-08-18 08:21:58 +0000 |
commit | 59123b0efba484e81625d403ca36768e149bd451 (patch) | |
tree | 74a5450c0ea65e9fd573665806aa1ede0d867c16 /tests/bugs153 | |
parent | 3b49ad4a35edfebc8f92f7dd7daa05387c0ad7de (diff) | |
download | aspectj-59123b0efba484e81625d403ca36768e149bd451.tar.gz aspectj-59123b0efba484e81625d403ca36768e149bd451.zip |
test and fix for 154332: broken java.lang.<annotation> processing
Diffstat (limited to 'tests/bugs153')
-rw-r--r-- | tests/bugs153/pr154332/Annot.java | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/tests/bugs153/pr154332/Annot.java b/tests/bugs153/pr154332/Annot.java new file mode 100644 index 000000000..183c82859 --- /dev/null +++ b/tests/bugs153/pr154332/Annot.java @@ -0,0 +1,45 @@ +import java.lang.annotation.*; + +@Deprecated @Marker + +public aspect Annot { + + + + pointcut test() : within(@Marker *);// *); + + + + declare warning: staticinitialization(@Deprecated *): "deprecated"; + + declare warning: staticinitialization(@Marker *): "marker"; + + + + public static void main(String argz[]) { + + new Baz().foo(); + + } + +} + + + +@Deprecated @Marker + +class Baz { + + public void foo() {} + +} + + + +@Retention(RetentionPolicy.RUNTIME) + + @interface Marker { + + + +}
\ No newline at end of file |