2015-05-15 17:43:21 -07:00

15 lines
340 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4982096 5004321
* @summary the type in an instanceof expression must be reifiable
* @author seligman
*
* @compile/fail/ref=InstanceOf2.out -XDrawDiagnostics InstanceOf2.java
*/
public class InstanceOf2 {
boolean m() {
return this.getClass() instanceof Class<InstanceOf2>;
}
}