aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs152/pr138158
diff options
context:
space:
mode:
authoraclement <aclement>2006-04-24 08:17:08 +0000
committeraclement <aclement>2006-04-24 08:17:08 +0000
commit71bba6c3746ecb3cf64e204372e367ade78da050 (patch)
tree7fd1b86fa5f70a13a7a63f0432d0e4d25650e7ab /tests/bugs152/pr138158
parent8cbcae72de6f0b2b8bca9d63edd10ae04982e94f (diff)
downloadaspectj-71bba6c3746ecb3cf64e204372e367ade78da050.tar.gz
aspectj-71bba6c3746ecb3cf64e204372e367ade78da050.zip
testcode for 137568,138143,138158
Diffstat (limited to 'tests/bugs152/pr138158')
-rw-r--r--tests/bugs152/pr138158/Boo.java21
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