Behavior change in the jar tool JDK11 vs JDK8.

Alan Bateman Alan.Bateman at oracle.com
Tue Mar 15 14:11:31 UTC 2022



On 15/03/2022 13:23, Pasam Soujanya1 wrote:
> Yes, jar command fails(exit code is 1) from JDK11 onward when target 
> files do not exist while archiving the data.

Can you check JDK 8u? I would expect the exit code to be non-0 with that 
release too, it's just that it leaves behind the file. That's the bug 
that was fixed in JDK 9 via JDK-8174996.

-Alan


More information about the core-libs-dev mailing list