Thu, 15 Jul 2010 16:31:02 +0100
6967002: JDK7 b99 javac compilation error (java.lang.AssertionError)
Summary: bug in JavacParser related to parsing of type annotations in varargs position
Reviewed-by: jjg
Contributed-by: mahmood@notnoop.com
1 /**
2 * @test /nodynamiccopyright/
3 * @bug 6183484
4 * @summary verify -nowarn is the same as -Xlint:none
5 * @compile/ref=NoWarn1.out -XDstdout -XDrawDiagnostics NoWarn.java
6 * @compile/ref=NoWarn2.out -XDstdout -XDrawDiagnostics -nowarn NoWarn.java
7 * @compile/ref=NoWarn2.out -XDstdout -XDrawDiagnostics -Xlint:none NoWarn.java
8 */
10 class NoWarn {
11 void m(Object... args) { }
12 void foo() {
13 m(null);
14 }
15 }