-
Notifications
You must be signed in to change notification settings - Fork 41k
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
Review usages of System.getProperty("java.home") #43050
Comments
|
This class is used by our webservers for the session store directory. If we want to get rid of the planned native image warning, we could add this: if (!NativeDetector.inNativeImage()) {
update(digest, System.getProperty("java.home"));
} |
Fixed PR: #43517 |
Superseded by #43517. |
When running in a native image,
System.getProperty("java.home")
will returnnull
(as there is no Java involved).The native image team wants to add a warning if this code is called as this can lead to subtle bugs. We should review our
System.getProperty("java.home")
usages and either remove them if not needed or guard for null / do not execute them when running in a native image.The text was updated successfully, but these errors were encountered: