Polish "Remove "java.home" system property when running in a native image"

See gh-43517
This commit is contained in:
Moritz Halbritter 2025-01-24 13:36:39 +01:00
parent 017a71ddc6
commit 7c6dbbff4b
1 changed files with 1 additions and 2 deletions

View File

@ -147,8 +147,7 @@ public class ApplicationTemp {
update(digest, home.getDir());
update(digest, System.getProperty("user.dir"));
if (!NativeDetector.inNativeImage()) {
String javaHome = System.getProperty("java.home");
update(digest, javaHome);
update(digest, System.getProperty("java.home"));
}
update(digest, System.getProperty("java.class.path"));
update(digest, System.getProperty("sun.java.command"));