Wed, 30 Oct 2013 18:09:49 +0000
8027327: jar files related to test test/tools/javac/ExtDirs/ExtDirTest.java should be removed from the repo
Reviewed-by: ksrini
aoqi@0 | 1 | /* |
aoqi@0 | 2 | * @test /nodynamiccopyright/ |
aoqi@0 | 3 | * @bug 4881267 |
aoqi@0 | 4 | * @summary improve diagnostic for "instanceof T" for type parameter T |
aoqi@0 | 5 | * @compile/fail/ref=T4881267.out -XDrawDiagnostics T4881267.java |
aoqi@0 | 6 | */ |
aoqi@0 | 7 | |
aoqi@0 | 8 | class T4881267 { |
aoqi@0 | 9 | <T> void m(Object o) { |
aoqi@0 | 10 | boolean b = o instanceof T; |
aoqi@0 | 11 | } |
aoqi@0 | 12 | } |