test/tools/javac/generics/UncheckedConstructor.java

Print this page

        

*** 25,36 **** * @test * @bug 4951260 * @summary compiler disallows raw call to generic constructor * @author gafter * ! * @compile -source 1.5 -Werror UncheckedConstructor.java ! * @compile/fail -source 1.5 -Werror -Xlint:unchecked UncheckedConstructor.java */ import java.util.*; class G3 { --- 25,36 ---- * @test * @bug 4951260 * @summary compiler disallows raw call to generic constructor * @author gafter * ! * @compile -Werror UncheckedConstructor.java ! * @compile/fail -Werror -Xlint:unchecked UncheckedConstructor.java */ import java.util.*; class G3 {