equal
deleted
inserted
replaced
27 * @summary Internal Error thrown during generic method/constructor invocation |
27 * @summary Internal Error thrown during generic method/constructor invocation |
28 * @compile/fail/ref=T6611449.out -XDstdout -XDrawDiagnostics T6611449.java |
28 * @compile/fail/ref=T6611449.out -XDstdout -XDrawDiagnostics T6611449.java |
29 */ |
29 */ |
30 public class T6611449<S> { |
30 public class T6611449<S> { |
31 |
31 |
32 T6611449() {this(1);} |
32 <T extends S> T6611449(T t1) {} |
33 |
|
34 <T extends S> T6611449(T t1) {this(t1, 1);} |
|
35 |
33 |
36 <T extends S> T6611449(T t1, T t2) {} |
34 <T extends S> T6611449(T t1, T t2) {} |
37 |
35 |
38 <T extends S> void m(T t1) {} |
36 <T extends S> void m1(T t1) {} |
39 |
37 |
40 <T extends S> void m(T t1, T t2) {} |
38 <T extends S> void m2(T t1, T t2) {} |
41 |
39 |
42 void test() { |
40 void test() { |
|
41 new T6611449<S>(1); |
|
42 new T6611449<S>(1, 1); //internal error: lub is erroneously applied to primitive types |
43 m1(1); |
43 m1(1); |
44 m2(1, 1); |
44 m2(1, 1); //internal error: lub is erroneously applied to primitive types |
45 } |
45 } |
46 } |
46 } |