Skip to content

Commit c434bfe

Browse files
committed
Make SystemPropertiesSupport.singleton() use ImageSingletons.lookup(SystemPropertiesSupport.class) for now
1 parent 45eb97e commit c434bfe

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

substratevm/src/com.oracle.svm.core.posix/src/com/oracle/svm/core/posix/darwin/DarwinSystemPropertiesSupport.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,6 @@ class DarwinSystemPropertiesFeature implements InternalFeature {
133133
public void duringSetup(DuringSetupAccess access) {
134134
ImageSingletons.add(RuntimeSystemPropertiesSupport.class, new DarwinSystemPropertiesSupport());
135135
/* GR-42971 - Remove once SystemPropertiesSupport.class ImageSingletons use is gone. */
136-
ImageSingletons.add(SystemPropertiesSupport.class, SystemPropertiesSupport.singleton());
136+
ImageSingletons.add(SystemPropertiesSupport.class, (SystemPropertiesSupport) ImageSingletons.lookup(RuntimeSystemPropertiesSupport.class));
137137
}
138138
}

substratevm/src/com.oracle.svm.core.posix/src/com/oracle/svm/core/posix/linux/LinuxSystemPropertiesSupport.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,6 @@ class LinuxSystemPropertiesFeature implements InternalFeature {
9595
public void duringSetup(DuringSetupAccess access) {
9696
ImageSingletons.add(RuntimeSystemPropertiesSupport.class, new LinuxSystemPropertiesSupport());
9797
/* GR-42971 - Remove once SystemPropertiesSupport.class ImageSingletons use is gone. */
98-
ImageSingletons.add(SystemPropertiesSupport.class, SystemPropertiesSupport.singleton());
98+
ImageSingletons.add(SystemPropertiesSupport.class, (SystemPropertiesSupport) ImageSingletons.lookup(RuntimeSystemPropertiesSupport.class));
9999
}
100100
}

substratevm/src/com.oracle.svm.core.windows/src/com/oracle/svm/core/windows/WindowsSystemPropertiesSupport.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,6 @@ class WindowsSystemPropertiesFeature implements InternalFeature {
393393
public void duringSetup(DuringSetupAccess access) {
394394
ImageSingletons.add(RuntimeSystemPropertiesSupport.class, new WindowsSystemPropertiesSupport());
395395
/* GR-42971 - Remove once SystemPropertiesSupport.class ImageSingletons use is gone. */
396-
ImageSingletons.add(SystemPropertiesSupport.class, SystemPropertiesSupport.singleton());
396+
ImageSingletons.add(SystemPropertiesSupport.class, (SystemPropertiesSupport) ImageSingletons.lookup(RuntimeSystemPropertiesSupport.class));
397397
}
398398
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public abstract class SystemPropertiesSupport implements RuntimeSystemProperties
9292

9393
@Fold
9494
public static SystemPropertiesSupport singleton() {
95-
return (SystemPropertiesSupport) ImageSingletons.lookup(RuntimeSystemPropertiesSupport.class);
95+
return ImageSingletons.lookup(SystemPropertiesSupport.class);
9696
}
9797

9898
@Platforms(Platform.HOSTED_ONLY.class)

0 commit comments

Comments
 (0)