test/tools/javac/generics/InstanceOf2.java

changeset 289
84061bd68019
parent 1
9a66ca7c79fa
child 554
9d9f26857129
equal deleted inserted replaced
288:d402db1005ad 289:84061bd68019
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>;

mercurial