test/tools/javac/TryWithResources/ImplicitFinal.out

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

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

mcimadamore@743 1 ImplicitFinal.java:14:13: compiler.err.try.resource.may.not.be.assigned: r
darcy@840 2 ImplicitFinal.java:20:13: compiler.err.try.resource.may.not.be.assigned: r1
darcy@840 3 ImplicitFinal.java:26:13: compiler.err.try.resource.may.not.be.assigned: r2
darcy@840 4 ImplicitFinal.java:32:13: compiler.err.try.resource.may.not.be.assigned: r3
darcy@840 5 4 errors

mercurial