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

Simplify AddOpens by including them in the manifest file #144

Merged
merged 2 commits into from
May 12, 2024

Conversation

spacebuilder2020
Copy link
Contributor

@spacebuilder2020 spacebuilder2020 commented May 6, 2024

Simplifies AddOpens section by including it as a manifest attribute. I have tested this on my server and the server still boots after removing the --add-opens section from the java9 args file.

As for the other properties, something like
if (!System.getProperties() .contains("file.encoding")) { System.getProperties() .put("file.encoding", "UTF-8"); } in the main class would work but I am not sure things like java.system.class.loader or java.security.manager could be injected that way.

@spacebuilder2020
Copy link
Contributor Author

After further testing, I have been unable to find a way open the security manager or set the class loader outside of the command line.

@spacebuilder2020 spacebuilder2020 changed the title [WIP] Simplify AddOpens by including them in the manifest file Simplify AddOpens by including them in the manifest file May 6, 2024
@Dream-Master Dream-Master requested review from eigenraven and a team May 6, 2024 21:11
Failed making field 'java.lang.ref.Reference#referent' accessible
Failed making field 'java.util.concurrent.locks.ReentrantLock#sync' accessible
@@ -24,6 +24,8 @@ val addOpens = listOf(
"java.base/java.nio=ALL-UNNAMED",
"java.base/java.io=ALL-UNNAMED",
"java.base/java.lang=ALL-UNNAMED",
"java.base/java.lang.ref=ALL-UNNAMED",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran into this issue on my server when saving data files for Forge Essentials using the bundled gson library
Since Forge Essentials does not bundle gson, I think this is a fix that belongs in lwjgl3ify since it might effect other mods as well.

@eigenraven eigenraven merged commit a2baf36 into GTNewHorizons:master May 12, 2024
1 check passed
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.

2 participants