diff options
author | aclement <aclement> | 2006-04-24 14:58:39 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-04-24 14:58:39 +0000 |
commit | f6aaed5b40f403abc8640513d66beadc6b2e31a9 (patch) | |
tree | f3b44165dad2a4b8c30931013dd20be2db1c00fe /tests/bugs152/pr138158 | |
parent | 77d9906679b671488272fe62c8409bcc32bbb99c (diff) | |
download | aspectj-f6aaed5b40f403abc8640513d66beadc6b2e31a9.tar.gz aspectj-f6aaed5b40f403abc8640513d66beadc6b2e31a9.zip |
test and fix for part2 of 138158
Diffstat (limited to 'tests/bugs152/pr138158')
-rw-r--r-- | tests/bugs152/pr138158/Doo.java | 27 |
1 files changed, 27 insertions, 0 deletions
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 |