|
The proposed patch swallows IOExceptions in a "catch (Exception)" block. The
IOException should propagate out of the method. Any particular one in mind or all of them? Am swallowing all exceptions for the
xxx.close() methods. Otherwise, these may hide other more relevant exceptions. Alternative might be something like this: IOException ex = null; There should be no "catch Exception" blocks. Just let any IOException propagate
out of the method. An exception thrown during close() will not hide any other exception because they would have been thrown first anyways. i think i see what you are saying.. am attaching a patch without all those
finally clauses. Have left in one IOexception swallowing block in the get() method, which would necessiate changing the multiple public method signatures... Other changes are backwards compatible. Created an attachment (id=5824)
Removed the finally clauses for close() methods Fixed in the 20030428 nightly build.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Minor exception-handling changes