langtools/test/tools/javac/generics/InstanceOf2.java
author hseigel
Wed, 02 Mar 2016 23:48:41 +0000
changeset 36397 c487ced7231c
parent 30724 0686b5ea7958
permissions -rw-r--r--
Merge

/*
 * @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>;
    }
}