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 26
26
27
27
package com .oracle .svm .core .posix .attach ;
28
28
29
- import java .nio .file .FileSystems ;
29
+ import java .nio .file .Paths ;
30
30
import java .util .concurrent .atomic .AtomicBoolean ;
31
31
import java .util .concurrent .locks .ReentrantLock ;
32
32
@@ -181,7 +181,7 @@ private String getSocketFilePath() {
181
181
if (cachedSocketFilePath == null ) {
182
182
long pid = ProcessHandle .current ().pid ();
183
183
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 () ;
185
185
}
186
186
return cachedSocketFilePath ;
187
187
}
You can’t perform that action at this time.
0 commit comments