25 * @test |
25 * @test |
26 * @bug 4982096 5004321 |
26 * @bug 4982096 5004321 |
27 * @summary the type in an instanceof expression must be reifiable |
27 * @summary the type in an instanceof expression must be reifiable |
28 * @author seligman |
28 * @author seligman |
29 * |
29 * |
30 * @compile/fail -source 1.5 InstanceOf2.java |
30 * @compile/fail InstanceOf2.java |
31 */ |
31 */ |
32 |
32 |
33 public class InstanceOf2 { |
33 public class InstanceOf2 { |
34 boolean m() { |
34 boolean m() { |
35 return this.getClass() instanceof Class<InstanceOf2>; |
35 return this.getClass() instanceof Class<InstanceOf2>; |