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