Skip to content

Commit f0f3fc6

Browse files
pejovicaansalond
authored andcommitted
[GR-62624] Fix StaticProperty.javaHome to reflect user input.
PullRequest: graal/20200
2 parents 766ffbc + 3196c9d commit f0f3fc6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/Target_jdk_internal_util_StaticProperty.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,7 @@ final class Target_jdk_internal_util_StaticProperty {
136136

137137
@Substitute
138138
private static String javaHome() {
139-
/* Native images do not have a Java home directory. */
140-
return null;
139+
return SystemPropertiesSupport.singleton().savedProperties.get("java.home");
141140
}
142141

143142
@Substitute

0 commit comments

Comments
 (0)