1 /* |
1 /* |
2 * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 package p1; |
24 package p1; |
25 |
25 |
|
26 @SuppressWarnings("unchecked") |
26 public class B extends A { |
27 public class B extends A { |
27 public B() {} |
|
28 public void foo1(A... args) { } |
28 public void foo1(A... args) { } |
29 public void foo2(A... args) { } |
29 public void foo2(A... args) { } |
30 public void foo2(Object... args) { } |
30 public void foo2(Object... args) { } |
31 public <X extends A> void foo3(X... args) { } |
31 public <X extends A> void foo3(X... args) { } |
32 public <X extends A> void foo4(X... args) { } |
32 public <X extends A> void foo4(X... args) { } |
33 public void foo4(Object... args) { } |
33 public void foo4(Object... args) { } |
34 |
|
35 } |
34 } |