gabe19 wrote:
Not sure I've got what you're after, but this seems like it would be better written with the closing and nulling (required?) in the finally block. If Java throws exceptions in the try after the finally, you will get exceptions from trying to close, but the close will be executed anyhow by the exception-swallowing finally block. Certainly seems convoluted.
You got it right. This was an easy one isn't it

. I am not sure it actually qualifies as a bug. But this is certainly poorly written exception handling code.