mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
14 lines
335 B
Java
14 lines
335 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @ bug
|
|
* @summary the type in an instanceof expression must be reifiable
|
|
* @author seligman
|
|
*
|
|
* @compile/fail/ref=InstanceOf3.out -XDrawDiagnostics InstanceOf3.java
|
|
*/
|
|
|
|
public class InstanceOf3 {
|
|
boolean m() {
|
|
return this.getClass() instanceof Class<? extends InstanceOf3>;
|
|
}
|
|
}
|