From f6aaed5b40f403abc8640513d66beadc6b2e31a9 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 24 Apr 2006 14:58:39 +0000 Subject: test and fix for part2 of 138158 --- tests/bugs152/pr138158/Doo.java | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tests/bugs152/pr138158/Doo.java (limited to 'tests/bugs152') diff --git a/tests/bugs152/pr138158/Doo.java b/tests/bugs152/pr138158/Doo.java new file mode 100644 index 000000000..fbc13bfe7 --- /dev/null +++ b/tests/bugs152/pr138158/Doo.java @@ -0,0 +1,27 @@ +import java.lang.annotation.*; + +@Retention(RetentionPolicy.RUNTIME) +@interface Goo {} + + +@Goo +public class Doo { + public static void main(String []argv) { + new Doo().m(); // advises here + } + + public void m() { + System.err.println(""); + } +} + +class Soo { + public void m() { + System.err.println(""); + } +} + +aspect X { + before(): call(* println(..)) && !@within(Goo) { + } +} \ No newline at end of file -- cgit v1.2.3