diff options
author | aclement <aclement> | 2006-09-25 15:02:19 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-09-25 15:02:19 +0000 |
commit | b53e59401bf0228e127edbde36efe074181859f0 (patch) | |
tree | 6ce55e7e43c176b51bfdd5c46cd738ffac1db37c /tests/bugs153 | |
parent | b69748e35322013e378a5eb830fbd0ac8ace25f4 (diff) | |
download | aspectj-b53e59401bf0228e127edbde36efe074181859f0.tar.gz aspectj-b53e59401bf0228e127edbde36efe074181859f0.zip |
testcase for 153464 - commented out at the mo
Diffstat (limited to 'tests/bugs153')
-rw-r--r-- | tests/bugs153/pr153464/Bug.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/bugs153/pr153464/Bug.java b/tests/bugs153/pr153464/Bug.java new file mode 100644 index 000000000..f6127d04d --- /dev/null +++ b/tests/bugs153/pr153464/Bug.java @@ -0,0 +1,29 @@ +import java.lang.annotation.*; + +aspect TestAspect { + // works - Derived.func() omitted +// declare warning : execution(@Annot * *(..)) && !within(@Annot *): "hi!"; + + // fails - Derived.func() not omitted + declare warning : execution(@Annot * *(..)) && within(!@Annot *) : "within includes negated annotation"; +} + + +class Base { + void func() { } +} + +//@Annot +class AnnotTest { + @Annot + class Derived extends Base { + @Annot void func() { } + } +// + // class NoAnnotClass { + // @Annot void func() { } + //} +} + +//@Retention(RetentionPolicy.RUNTIME) +@interface Annot { }; |