Skip to content

Commit 14ed014

Browse files
Fix java.specification.maintenance.version.
1 parent 795663f commit 14ed014

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@
3636
import java.util.concurrent.ConcurrentHashMap;
3737
import java.util.function.Supplier;
3838

39-
import com.oracle.svm.core.SubstrateOptions;
4039
import org.graalvm.nativeimage.ImageInfo;
4140
import org.graalvm.nativeimage.ImageSingletons;
4241
import org.graalvm.nativeimage.Platform;
4342
import org.graalvm.nativeimage.Platforms;
4443
import org.graalvm.nativeimage.hosted.RuntimeSystemProperties;
4544
import org.graalvm.nativeimage.impl.RuntimeSystemPropertiesSupport;
4645

46+
import com.oracle.svm.core.SubstrateOptions;
4747
import com.oracle.svm.core.SubstrateUtil;
4848
import com.oracle.svm.core.VM;
4949
import com.oracle.svm.core.c.locale.LocaleSupport;
@@ -69,6 +69,15 @@ public abstract class SystemPropertiesSupport implements RuntimeSystemProperties
6969
private static final String[] HOSTED_PROPERTIES = {
7070
"java.version",
7171
"java.version.date",
72+
"java.class.version",
73+
"java.runtime.version",
74+
"java.specification.name",
75+
"java.specification.vendor",
76+
"java.specification.version",
77+
"java.specification.maintenance.version",
78+
"java.vm.specification.name",
79+
"java.vm.specification.vendor",
80+
"java.vm.specification.version",
7281
ImageInfo.PROPERTY_IMAGE_KIND_KEY,
7382
/*
7483
* We do not support cross-compilation for now. Separators might also be cached
@@ -83,14 +92,6 @@ public abstract class SystemPropertiesSupport implements RuntimeSystemProperties
8392
"native.encoding",
8493
"stdout.encoding",
8594
"stderr.encoding",
86-
"java.class.version",
87-
"java.runtime.version",
88-
"java.specification.name",
89-
"java.specification.vendor",
90-
"java.specification.version",
91-
"java.vm.specification.name",
92-
"java.vm.specification.vendor",
93-
"java.vm.specification.version"
9495
};
9596

9697
/** System properties that are computed at run time on first access. */

0 commit comments

Comments
 (0)