blob: b7f7446e059a7631be8438548aa1b48ecf126908 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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]);
}
}
|