aoqi@0: /** aoqi@0: * @test /nodynamiccopyright/ aoqi@0: * @bug 6611449 aoqi@0: * @summary Internal Error thrown during generic method/constructor invocation aoqi@0: * @compile/fail/ref=T6611449.out -XDrawDiagnostics T6611449.java aoqi@0: */ aoqi@0: public class T6611449 { aoqi@0: aoqi@0: T6611449(T t1) {} aoqi@0: aoqi@0: T6611449(T t1, T t2) {} aoqi@0: aoqi@0: void m1(T t1) {} aoqi@0: aoqi@0: void m2(T t1, T t2) {} aoqi@0: aoqi@0: void test() { aoqi@0: new T6611449(1); aoqi@0: new T6611449(1, 1); //internal error: lub is erroneously applied to primitive types aoqi@0: m1(1); aoqi@0: m2(1, 1); //internal error: lub is erroneously applied to primitive types aoqi@0: } aoqi@0: }