There are several places in jpackage where we do I/O with explicit calls to close the stream. Several of them are even missing try-finally blocks. We should modify as many of these as is feasible to use try-with-resources so the code will be more robust.
A partial list of classes that could be fixed includes:
IOUtils, LinuxAppImageBuilder, LinuxDebBundler, LinuxRpmBundler, MacAppImageBuilder, etc.
A partial list of classes that could be fixed includes:
IOUtils, LinuxAppImageBuilder, LinuxDebBundler, LinuxRpmBundler, MacAppImageBuilder, etc.