Skip to content

Calls to JarUrlClassLoader.clearCache run the risk of "zip closed" exceptions #52797

Closed

Description

@philwebb

Fixing issue #52582 has increased the risk of "zip closed" exceptions being thrown when loading classes in multiple thread. Issue #52635 shows the problem manifesting itself in 4.2.0-RC2, however, it's not been possible to reproduce in 4.0.x or 4.1.x SNAPSHOTs.

Nevertheless, it's possible we could be susceptible to the problem and unless we want to apply a risky fix in the stable versions, it's probably better to simply not clear the cache. We can use 4.2.x to verify a proper fix doesn't cause regressions and then consider backporting it if we want to.

Activity

  1. self-assigned this
    on Nov 13, 2026
  2. added this to the 4.0.10 milestone on Nov 13, 2026
  3. added a commit that references this issue on Nov 13, 2026
    a704194
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions