test/tools/javac/varargs/BadSyntax2.java

Print this page

        

*** 25,35 **** * @test * @bug 4901611 5009693 4920438 * @summary generic class method with vararg gets "java.lang.AssertionError: arraycode T" * @author gafter * ! * @compile -source 1.5 BadSyntax2.java */ class Tclass<T> { T data; public Tclass(T... t){} --- 25,35 ---- * @test * @bug 4901611 5009693 4920438 * @summary generic class method with vararg gets "java.lang.AssertionError: arraycode T" * @author gafter * ! * @compile BadSyntax2.java */ class Tclass<T> { T data; public Tclass(T... t){}