Project

General

Profile

Bug #2194

Multi-Release Jar Classloading fails to resolve versioned class, if there is no root version

Added by Henning Blohm 3 days ago. Updated 3 days ago.

Status:
Feedback
Priority:
Urgent
Assignee:
Category:
z2-core
Target 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.

Also available in: Atom PDF