RFR: 8365700: jar --validate without any --file option leaves around a temporary file /tmp/tmpJar<number>.jar

Jaikiran Pai jpai at openjdk.org
Tue Aug 19 09:14:37 UTC 2025


On Tue, 19 Aug 2025 07:51:29 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> The jtreg test tools/jar/JarNoFileArgOperations.java seems to create files like /tmp/tmpJar12065714313154611400.jar in the file system and keeps them there after the test finishes (also in case of SUCCESS) .
> This has been observed at least on Linux and AIX .

Thank you Matthias for this fix. Although it was the `JarNoFileArgOperations` test which showed up this issue, the actual bug resides in the `jar` tool which is where your fix resides. This looks good to me.

-------------

Marked as reviewed by jpai (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/26837#pullrequestreview-3131432807


More information about the core-libs-dev mailing list