Behavior change in the jar tool JDK11 vs JDK8.

Alan Bateman Alan.Bateman at oracle.com
Tue Mar 15 12:09:14 UTC 2022


On 15/03/2022 11:33, Pasam Soujanya1 wrote:
> Basically, we have a customer who use the jar command to zip up data 
> files generated in a directory, most of the time the files don't exist.

Can you confirm that the jar command is failing, meaning the exit code 
is non-0? The change in JDK 9 to remove the temporay file when jar fails 
was deliberate. Yes, it probably should have had a release note at the time.

-Alan


More information about the core-libs-dev mailing list