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

Fixed issue #691: properties from extension jnlp are not set. #894

Merged
merged 1 commit into from
May 16, 2023

Conversation

fthevenet
Copy link

Hi,

This PR aims to fix the following open issue: #691: properties from extension jnlp are not set.

It does so by recursively visiting JNLP files referenced as extensions in the resources section to prepare a list of properties to be set all at once during an application's initialization phase.

The main benefit this approach is its simplicity while guaranteeing that properties will be set before code in the application (including in extensions) is executed, as mandated by the JNLP specification (JCP 56).

It does have the side effect of requesting the parsing - and therefore the download before that - of all JNLP files in the hierarchy. I have not observed that to be an issue in practice (jars and other resources should not be downloaded if not marked as "eager"), but it is something to keep in mind.

Also, while this PR explicitly addresses the issue in ITW 1.8, I indented to port that fix to the current 2.0 branch, but it appears that the method I rely on on to resolve nested JNLP files has been removed; could someone explain the reason behind this removal (or point me in the direction of a document that does)? Thanks.

@sclassen sclassen merged commit 42acfcd into AdoptOpenJDK:1.8 May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants