test/tools/javac/T4881267.java

Wed, 30 Oct 2013 18:09:49 +0000

author
vromero
date
Wed, 30 Oct 2013 18:09:49 +0000
changeset 2173
537fa895fd74
parent 0
959103a6100f
permissions
-rw-r--r--

8027327: jar files related to test test/tools/javac/ExtDirs/ExtDirTest.java should be removed from the repo
Reviewed-by: ksrini

     1 /*
     2  * @test /nodynamiccopyright/
     3  * @bug 4881267
     4  * @summary improve diagnostic for "instanceof T" for type parameter T
     5  * @compile/fail/ref=T4881267.out -XDrawDiagnostics T4881267.java
     6  */
     8 class T4881267 {
     9     <T> void m(Object o) {
    10         boolean b = o instanceof T;
    11     }
    12 }

mercurial