test/tools/javac/T5048776.java

Tue, 13 Jan 2009 13:28:42 +0000

author
mcimadamore
date
Tue, 13 Jan 2009 13:28:42 +0000
changeset 186
09eb1acc9610
parent 1
9a66ca7c79fa
child 611
4172cfff05f0
permissions
-rw-r--r--

6723444: javac fails to substitute type variables into a constructor's throws clause
Summary: Added constructor's actual type info to NewClass AST node
Reviewed-by: jjg
Contributed-by: mark@twistedbanana.demon.co.uk

     1 /*
     2  * @test  /nodynamiccopyright/
     3  * @bug 5048776
     4  * @compile/ref=T5048776a.out -XDstdout -XDrawDiagnostics                  T5048776.java
     5  * @compile/ref=T5048776b.out -XDstdout -XDrawDiagnostics -Xlint:all,-path T5048776.java
     6  */
     7 class A1 {
     8     void foo(Object[] args) { }
     9 }
    11 class A1a extends A1 {
    12     void foo(Object... args) { }
    13 }
    15 class A2 {
    16     void foo(Object... args) { }
    17 }
    19 class A2a extends A2 {
    20     void foo(Object[] args) { }
    21 }

mercurial