Try-with-resource autoclose issues : <p>I am working with a legacy code, where I see certain DB transaction initiated in try-with-Resources close block. I understand the DB resource will be closed once the code in the try block is executed. Can somebody help me, how can I over-ride or bypass the autoclosing, in this case ?   I am working with the legacy code and that too for very short time, so want not to change too much of code, and invite unit tests failures.</p>
