summaryrefslogtreecommitdiffstats
path: root/tests/bugs164/pr265418
diff options
context:
space:
mode:
authoraclement <aclement>2009-02-19 21:04:45 +0000
committeraclement <aclement>2009-02-19 21:04:45 +0000
commit0da0f4fbc6733814b049366938403101a9e578a7 (patch)
tree6eef0de7c8ea6250ee101ce5afbefbcef227e1e2 /tests/bugs164/pr265418
parentbb6a294312282d7caaf8a85d79b35a94e3f3c2d6 (diff)
downloadaspectj-0da0f4fbc6733814b049366938403101a9e578a7.tar.gz
aspectj-0da0f4fbc6733814b049366938403101a9e578a7.zip
148508, 265418: tests and fixes: array and varargs subtype patterns
Diffstat (limited to 'tests/bugs164/pr265418')
-rw-r--r--tests/bugs164/pr265418/A.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/bugs164/pr265418/A.java b/tests/bugs164/pr265418/A.java
new file mode 100644
index 000000000..b68ca4da7
--- /dev/null
+++ b/tests/bugs164/pr265418/A.java
@@ -0,0 +1,29 @@
+public aspect A {
+
+ public static void a(Object... os) {}
+ public static void b(String... ss) {}
+ public static void c(Integer... is) {}
+
+ public static void d(Object[] os) {}
+ public static void e(String[] ss) {}
+ public static void f(Integer[] is) {}
+
+
+ before(Object[] args): call(* *(Object+...)) && args(args) {
+ System.out.println("varargs "+thisJoinPoint);
+ }
+
+ before(Object[] args): call(* *(Object+[])) && args(args) {
+ System.out.println("arrays "+thisJoinPoint);
+ }
+
+ public static void main(String []argv) {
+ a();
+ b();
+ c();
+ d(null);
+ e(null);
+ f(null);
+ }
+
+}