RFR: 8322078: ZipSourceCache.testKeySourceMapping() test fails with The process cannot access the file because it is being used by another process

Lance Andersen lancea at openjdk.org
Wed Dec 20 17:42:47 UTC 2023


On Wed, 20 Dec 2023 15:37:37 GMT, Sean Coffey <coffeys at openjdk.org> wrote:

> trivial test edit to use FileUtils.deleteFileIfExistsWithRetry test library API
> 
> tested on CI system with test-repeat = 20 - no issues seen.

Hi Sean,

Thank you for tackling this.

Would it be beneficial to use a try-with-resources for the zip file opened on lines 88 and 98 just to rule out any other weirdness on windows?

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

Marked as reviewed by lancea (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/17169#pullrequestreview-1791382251


More information about the core-libs-dev mailing list