Skip to content

Commit 05a92e9

Browse files
committed
Revert "svm: don't use Path in startup code where stuff the FileSystemProviders might not be initialized"
This reverts commit b0c29d6.
1 parent 40cc294 commit 05a92e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

substratevm/src/com.oracle.svm.core.posix/src/com/oracle/svm/core/posix/attach/PosixAttachApiSupport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
package com.oracle.svm.core.posix.attach;
2828

29-
import java.nio.file.FileSystems;
29+
import java.nio.file.Paths;
3030
import java.util.concurrent.atomic.AtomicBoolean;
3131
import java.util.concurrent.locks.ReentrantLock;
3232

@@ -181,7 +181,7 @@ private String getSocketFilePath() {
181181
if (cachedSocketFilePath == null) {
182182
long pid = ProcessHandle.current().pid();
183183
String tempDir = Target_jdk_internal_vm_VMSupport.getVMTemporaryDirectory();
184-
cachedSocketFilePath = tempDir + FileSystems.getDefault().getSeparator() + ".java_pid" + pid;
184+
cachedSocketFilePath = Paths.get(tempDir, ".java_pid" + pid).toString();
185185
}
186186
return cachedSocketFilePath;
187187
}

0 commit comments

Comments
 (0)