Skip to content

Programmatically provide system property defaults#5982

Draft
kwvanderlinde wants to merge 2 commits into
RPTools:developfrom
kwvanderlinde:refactor/5972-programmatic-system-properties
Draft

Programmatically provide system property defaults#5982
kwvanderlinde wants to merge 2 commits into
RPTools:developfrom
kwvanderlinde:refactor/5972-programmatic-system-properties

Conversation

@kwvanderlinde

@kwvanderlinde kwvanderlinde commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Identify the Bug or Feature request

Resolves #5972

Description of the Change

Sets the sun.java2d.d3d, polyglot.engine.WarnInterpreterOnly, and java.util.Arrays.useLegacyMergeSort system properties immediately on application start rather than requiring them to be set on the command line. If alternative values are provided on the command line, those will be used instead of the defaults. Also added is sun.java2d.opengl to be explicit that it should not be used by default, though it just so happens that the JVM does disable this by default (unliked sun.java2d.d3d).

Possible Drawbacks

None

Documentation Notes

N/A

Release Notes

  • Set sun.java2d.d3d, polyglot.engine.WarnInterpreterOnly, and java.util.Arrays.useLegacyMergeSort programmatically so they do not need to be provided on the command line.

This change is Reviewable

@kwvanderlinde kwvanderlinde self-assigned this Jun 18, 2026
@github-actions github-actions Bot added the code-maintenance Adding/editing javadocs, unit tests, formatting. label Jun 18, 2026
@kwvanderlinde kwvanderlinde marked this pull request as draft June 18, 2026 22:49
@kwvanderlinde

Copy link
Copy Markdown
Collaborator Author

Keeping this as a draft for now as it should be merged after the other JAR improvement PRs.

@kwvanderlinde kwvanderlinde moved this from Todo to In-Progress in MapTool 1.19 Jun 18, 2026
@kwvanderlinde kwvanderlinde changed the title Refactor/5972 programmatic system properties Programmatically provide system property defaults Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-maintenance Adding/editing javadocs, unit tests, formatting.

Projects

Status: In-Progress

Development

Successfully merging this pull request may close these issues.

[Maintenance]: Programmatically set applicable system properties

1 participant