aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1811/509235/Code2.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs1811/509235/Code2.java')
-rw-r--r--tests/bugs1811/509235/Code2.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/bugs1811/509235/Code2.java b/tests/bugs1811/509235/Code2.java
new file mode 100644
index 000000000..67765c1cb
--- /dev/null
+++ b/tests/bugs1811/509235/Code2.java
@@ -0,0 +1,17 @@
+public class Code2 {
+ public static void main(String []argv) {
+ foo("fooname");
+ bar("crap","barname");
+ }
+
+ public static void foo(String username) {}
+
+ public static void bar(String a, String username) { }
+}
+
+aspect X {
+ before(String username): (execution(public static * foo(..)) && args(username)) ||
+ (execution(public static * bar(..)) && args(*,username)) {
+ System.out.println("username = "+username);
+ }
+}