diff options
Diffstat (limited to 'tests/bugs152/pr138158')
-rw-r--r-- | tests/bugs152/pr138158/Boo.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/bugs152/pr138158/Boo.java b/tests/bugs152/pr138158/Boo.java new file mode 100644 index 000000000..7a3bb0f63 --- /dev/null +++ b/tests/bugs152/pr138158/Boo.java @@ -0,0 +1,21 @@ +import java.lang.annotation.*; + +@Retention(RetentionPolicy.RUNTIME) +@interface Goo {} + + +public class Boo { + public static void main(String []argv) { + new Boo().m(); // advises here + } + + @Goo + public void m() { + System.err.println(""); + } +} + +aspect X { + before(): call(* *(..)) && !@withincode(Goo) { + } +}
\ No newline at end of file |