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

Sean Coffey coffeys at openjdk.org
Wed Dec 20 22:05:53 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.

Thanks for the review Lance. I didn't use try-with-resources during test creation in those locations since the timing of the close() operation is key to the test. Being able to control when the files are closed allows extra sanity checks to be performed.

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

PR Comment: https://git.openjdk.org/jdk/pull/17169#issuecomment-1865200537


More information about the core-libs-dev mailing list