Bug #2194
Multi-Release Jar Classloading fails to resolve versioned class, if there is no root version
Start date:
16.04.2025
Due date:
% Done:
0%
Estimated time:
origin:
Description
With #2154 we started supporting multi-release Jars. However, the assumption was that a root version of a class is present and versioned overrides may exist.
However with Bouncy Castle we have a library example in which some classes only exist in higher versions.
Acceptance Criteria¶
- Multi-Release class loading also works for the case that no root version is provided
Implementation Hint¶
- Use
JarFile.versionedStream()
to traverse entries in a versioned form.