2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2015-05-15 23:53:42 +00:00
|
|
|
* @test /nodynamiccopyright/
|
|
|
|
* @ bug
|
2007-12-01 00:00:00 +00:00
|
|
|
* @summary the type in an instanceof expression must be reifiable
|
|
|
|
* @author seligman
|
|
|
|
*
|
2022-07-29 17:35:22 +00:00
|
|
|
* @compile/fail/ref=InstanceOf3.out -XDrawDiagnostics --release 15 InstanceOf3.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
public class InstanceOf3 {
|
|
|
|
boolean m() {
|
|
|
|
return this.getClass() instanceof Class<? extends InstanceOf3>;
|
|
|
|
}
|
|
|
|
}
|