test/tools/javac/T4881267.java

Thu, 10 Oct 2013 14:58:04 +0200

author
ihse
date
Thu, 10 Oct 2013 14:58:04 +0200
changeset 2094
343aeb2033f0
parent 0
959103a6100f
permissions
-rw-r--r--

8001931: The new build system whitespace cleanup
Reviewed-by: tbell, simonis, erikj

     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