File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
substratevm/src/com.oracle.svm.core.posix/src/com/oracle/svm/core/posix/attach Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2626
2727package com .oracle .svm .core .posix .attach ;
2828
29- import java .nio .file .Paths ;
29+ import java .nio .file .FileSystems ;
3030import java .util .concurrent .atomic .AtomicBoolean ;
3131import 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 = Paths . get ( tempDir , ".java_pid" + pid ). toString () ;
184+ cachedSocketFilePath = tempDir + FileSystems . getDefault (). getSeparator () + ".java_pid" + pid ;
185185 }
186186 return cachedSocketFilePath ;
187187 }
You can’t perform that action at this time.
0 commit comments