Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GR-50675] Fix class-path order when Manifests include "Class-Path" attributes. #7957

Merged
merged 2 commits into from
Dec 5, 2023

Conversation

graalvmbot
Copy link
Collaborator

No description provided.

zakkak and others added 2 commits December 4, 2023 13:39
`destination` is the classpath GraalVM creates from parsing the jar
files passed to it. The ordering of the entries in the classpath is
important. Jar files themselves should be added before the entries of
their corresponding "Class-Path" attributes.

At the same time we want to process the contents of
`META-INF/native-image` of the entries in the "Class-Path" before
processing the contents of `META-INF/native-image` of the jar itself.
This is required to ensure that the jar `META-INF/native-image` contents
can override those of the entries in its "Class-Path".

As a result I chose to optimistically add the path to the classpath (aka
`destination`) and remove it afterwards if deemed necessary.

Fixes #7677
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Dec 5, 2023
@graalvmbot graalvmbot merged commit 5da9ffa into master Dec 5, 2023
12 checks passed
@graalvmbot graalvmbot deleted the zakkak/2023-10-26-fix-classpath-ordering branch December 5, 2023 16:53
@zakkak
Copy link
Collaborator

zakkak commented Dec 5, 2023

@ezzarghili a note that this fix should be backported to 23.1 as well. Could you please confirm it's on the backport queue?

@zakkak
Copy link
Collaborator

zakkak commented Jan 16, 2024

Backported to 23.1 with 4d42525

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants