It should.

https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html

The question is WHY the zip code is WITHIN bundle try/catch?

Dmitry

On 2/23/2016 6:02 PM, alaninmcr wrote:
On 23/02/2016 15:38, Ian Dunlop wrote:
Hello,

I add zip.close() to the validate code and it built ok. Code fragment
below. Shall I commit it to master and then we can start the release
process again? Or am I missing something?

If the declaration of the ZipFile is moved inside the try, Java 8 should (from my reading of the documentation) auto-close it. Perhaps the handling of autoclose is different according to the OS.

Cheers,

Ian

Alan



Reply via email to