-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Java system properties are inconsistent between traditional JDK and native image #2835
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
Comments
@christianwimmer |
We are still not setting the |
So the user should specify that property at startup, right? |
Correct. You can use |
Thanks for the answer. |
Could someone with OpenJDK contributor access maybe create a small proposal into OpenJDK project: One of the problems can be easily solved in OpenJDK codebase:
It fails because of this code in
But not having os specific font config is actually considered to be "normal" a bit below.
So maybe it's better to have something like this instead in
|
Describe the issue
Java system properties are changed from native image to OpenJDK. Some properties are removed, and some properties' values are changed. When user call
System.getProperty
, he/she may expect a consistent value with OpenJDK version. Or at least a warning is reported at build time. We propose #2834 to fix this issue.Steps to reproduce the issue
Run this test with OpenJDK will print out the java.home location, but with native image will get a NPE.
Describe GraalVM and your environment:
More details
The exception thrown:
The text was updated successfully, but these errors were encountered: