test/tools/javac/T5048776b.out

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

author
mcimadamore
date
Tue, 15 Feb 2011 11:51:04 +0000
changeset 878
fa0e4e1916f4
parent 221
6ada6122dd4f
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

     1 T5048776.java:12:10: compiler.warn.override.varargs.missing: (compiler.misc.varargs.override: foo(java.lang.Object...), A1a, foo(java.lang.Object[]), A1)
     2 T5048776.java:20:10: compiler.warn.override.varargs.extra: (compiler.misc.varargs.override: foo(java.lang.Object[]), A2a, foo(java.lang.Object...), A2)
     3 2 warnings

mercurial