You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425
  1. public class pr110906 {
  2. public static void main(String []argv) {
  3. new pr110906().printNames(new Object[]{"a","b","c"});
  4. new pr110906().printNames("a","b","c"); // should be allowed!!
  5. new pr110906().printNames2("a","b","c"); // should be allowed!!
  6. }
  7. }
  8. aspect A {
  9. private interface HasName {}
  10. declare parents: (pr110906) implements HasName;
  11. public void HasName.printNames(Object... names) {
  12. System.out.println(names[0]);
  13. }
  14. public void HasName.printNames2(String... names) {
  15. System.out.println(names[0]);
  16. }
  17. }