1/* 2 * @test /nodynamiccopyright/ 3 * @bug 4982096 5004321 4 * @summary the type in an instanceof expression must be reifiable 5 * @author seligman 6 * 7 * @compile/fail/ref=InstanceOf2.out -XDrawDiagnostics InstanceOf2.java 8 */ 9 10public class InstanceOf2 { 11 boolean m() { 12 return this.getClass() instanceof Class<InstanceOf2>; 13 } 14} 15