summaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr110906.aj
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs150/pr110906.aj')
-rw-r--r--tests/bugs150/pr110906.aj25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/bugs150/pr110906.aj b/tests/bugs150/pr110906.aj
new file mode 100644
index 000000000..b7f7446e0
--- /dev/null
+++ b/tests/bugs150/pr110906.aj
@@ -0,0 +1,25 @@
+public class pr110906 {
+
+ public static void main(String []argv) {
+ new pr110906().printNames(new Object[]{"a","b","c"});
+ new pr110906().printNames("a","b","c"); // should be allowed!!
+ new pr110906().printNames2("a","b","c"); // should be allowed!!
+ }
+
+}
+
+aspect A {
+
+ private interface HasName {}
+
+ declare parents: (pr110906) implements HasName;
+
+ public void HasName.printNames(Object... names) {
+ System.out.println(names[0]);
+ }
+
+ public void HasName.printNames2(String... names) {
+ System.out.println(names[0]);
+ }
+
+}