From 765c4be9a0945dba7c2c87104fec751ae7f26f2f Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 3 Oct 2006 15:20:44 +0000 Subject: [PATCH] 153464 - testcase in progress --- tests/bugs153/pr153464/Foo.java | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/bugs153/pr153464/Foo.java diff --git a/tests/bugs153/pr153464/Foo.java b/tests/bugs153/pr153464/Foo.java new file mode 100644 index 000000000..1167e9bb4 --- /dev/null +++ b/tests/bugs153/pr153464/Foo.java @@ -0,0 +1,30 @@ +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"; + pointcut hasMethod() : hasmethod(@Annot * *(..)); +} + + +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 { }; -- 2.39.5