test/tools/javac/T6230128.java

Tue, 15 Feb 2011 11:51:04 +0000

author
mcimadamore
date
Tue, 15 Feb 2011 11:51:04 +0000
changeset 878
fa0e4e1916f4
parent 611
4172cfff05f0
child 2525
2eb010b6cb22
permissions
-rw-r--r--

7017104: improve error reporting for uncaught/undeclared exceptions from try-with-resources
Summary: twr should generate better error message when uncaught exceptions are thrown by implicit call of close() method
Reviewed-by: jjg

duke@1 1 /*
duke@1 2 * @test /nodynamiccopyright/
duke@1 3 * @bug 6230128
jjg@611 4 * @compile/fail/ref=T6230128.out -XDrawDiagnostics T6230128.java
duke@1 5 */
duke@1 6 class A1 {
duke@1 7 public void foo(Object[] args) { }
duke@1 8 }
duke@1 9
duke@1 10 class A1a extends A1 {
duke@1 11 void foo(Object... args) { }
duke@1 12 }

mercurial