1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/tools/javac/generics/inference/6611449/T6611449.java Wed Apr 27 01:34:52 2016 +0800 1.3 @@ -0,0 +1,23 @@ 1.4 +/** 1.5 + * @test /nodynamiccopyright/ 1.6 + * @bug 6611449 1.7 + * @summary Internal Error thrown during generic method/constructor invocation 1.8 + * @compile/fail/ref=T6611449.out -XDrawDiagnostics T6611449.java 1.9 + */ 1.10 +public class T6611449<S> { 1.11 + 1.12 + <T extends S> T6611449(T t1) {} 1.13 + 1.14 + <T extends S> T6611449(T t1, T t2) {} 1.15 + 1.16 + <T extends S> void m1(T t1) {} 1.17 + 1.18 + <T extends S> void m2(T t1, T t2) {} 1.19 + 1.20 + void test() { 1.21 + new T6611449<S>(1); 1.22 + new T6611449<S>(1, 1); //internal error: lub is erroneously applied to primitive types 1.23 + m1(1); 1.24 + m2(1, 1); //internal error: lub is erroneously applied to primitive types 1.25 + } 1.26 +}