aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/PR102210.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs150/PR102210.java')
-rw-r--r--tests/bugs150/PR102210.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/bugs150/PR102210.java b/tests/bugs150/PR102210.java
new file mode 100644
index 000000000..3c1046507
--- /dev/null
+++ b/tests/bugs150/PR102210.java
@@ -0,0 +1,34 @@
+import java.util.*;
+
+public aspect PR102210 {
+
+ pointcut complex(List list):
+ (execution(public * *(String, List)) && args(*,list)) ||
+ (execution(public * *(String, List, String)) && args(*,list,*)) ||
+ (execution(public * *(String, String[], List, String)) && args(*,*,list,*));
+
+ before(List l): complex(l) {
+ System.err.println("List size is "+l.size());
+ }
+
+ public static void main(String []argv) {
+ List l = new ArrayList();
+ l.add(".");
+ m1("xxx",l);
+ l.add(".");
+ m2("xxx",l,"yyy");
+ l.add(".");
+ m3("xxx",new String[]{"xxx","yyy"},l,"zzz");
+ }
+
+ public static void m1(String a,List b) {
+ System.err.println("m1 running");
+ }
+ public static void m2(String a,List b,String c) {
+ System.err.println("m2 running");
+ }
+ public static void m3(String a,String[] b,List c,String d) {
+ System.err.println("m3 running");
+ }
+
+}