Thu, 19 Aug 2010 11:52:58 +0100
6885255: Improve usability of raw warnings
Summary: raw warnings should be disabled in (i) instanceof expressions and (ii) when java.lang.Class is not parameterized
Reviewed-by: jjg
1 /*
2 * @test /nodynamiccopyright/
3 * @bug 6330920
4 * @summary Verify that javac doesn't duplicate method error on method with error
5 * @author Peter von der Ah\u00e9
6 * @compile/fail/ref=T6330920.out -XDrawDiagnostics T6330920.java
7 */
9 public class T6330920 {
10 public void test(T6330920 x) {}
11 public void test(T6330920Missing x) {}
12 }