2008-03-04 12:14:13 +00:00
|
|
|
/**
|
2009-08-27 11:08:27 -07:00
|
|
|
* @test /nodynamiccopyright/
|
2008-03-04 12:14:13 +00:00
|
|
|
* @bug 6611449
|
|
|
|
* @summary Internal Error thrown during generic method/constructor invocation
|
2010-07-26 14:18:45 -07:00
|
|
|
* @compile/fail/ref=T6611449.out -XDrawDiagnostics T6611449.java
|
2008-03-04 12:14:13 +00:00
|
|
|
*/
|
|
|
|
public class T6611449<S> {
|
|
|
|
|
2008-04-09 15:04:35 +01:00
|
|
|
<T extends S> T6611449(T t1) {}
|
2008-03-04 12:14:13 +00:00
|
|
|
|
|
|
|
<T extends S> T6611449(T t1, T t2) {}
|
|
|
|
|
2008-04-09 15:04:35 +01:00
|
|
|
<T extends S> void m1(T t1) {}
|
2008-03-04 12:14:13 +00:00
|
|
|
|
2008-04-09 15:04:35 +01:00
|
|
|
<T extends S> void m2(T t1, T t2) {}
|
2008-03-04 12:14:13 +00:00
|
|
|
|
|
|
|
void test() {
|
2008-04-09 15:04:35 +01:00
|
|
|
new T6611449<S>(1);
|
|
|
|
new T6611449<S>(1, 1); //internal error: lub is erroneously applied to primitive types
|
2008-03-04 12:14:13 +00:00
|
|
|
m1(1);
|
2008-04-09 15:04:35 +01:00
|
|
|
m2(1, 1); //internal error: lub is erroneously applied to primitive types
|
2008-03-04 12:14:13 +00:00
|
|
|
}
|
|
|
|
}
|