test/tools/javac/generics/InstanceOf3.java

Print this page

        

*** 25,35 **** * @test * @bug 4982096 5004321 * @summary the type in an instanceof expression must be reifiable * @author seligman * ! * @compile/fail -source 1.5 InstanceOf3.java */ public class InstanceOf3 { boolean m() { return this.getClass() instanceof Class<? extends InstanceOf3>; --- 25,35 ---- * @test * @bug 4982096 5004321 * @summary the type in an instanceof expression must be reifiable * @author seligman * ! * @compile/fail InstanceOf3.java */ public class InstanceOf3 { boolean m() { return this.getClass() instanceof Class<? extends InstanceOf3>;