-
Bug
-
Resolution: Fixed
-
P3
-
9
-
b32
-
x86_64
-
windows
FULL PRODUCT VERSION :
Java(TM) SE Runtime Environment (build 9+181)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 10.0.15063]
A DESCRIPTION OF THE PROBLEM :
package test;
import java.io.IOException;
import java.util.logging.FileHandler;
import java.util.logging.Handler;
public class Test {
public static void main(String[] args) {
try {
Handler handler = new FileHandler("c:/Workspace/hoge.log");
} catch (SecurityException | IOException e) {
e.printStackTrace();
}
}
}
throws
java.nio.file.NoSuchFileException: c:Workspace\hoge.log.lck
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.newFileChannel(WindowsFileSystemProvider.java:116)
at java.base/java.nio.channels.FileChannel.open(FileChannel.java:292)
at java.base/java.nio.channels.FileChannel.open(FileChannel.java:340)
at java.logging/java.util.logging.FileHandler.openFiles(FileHandler.java:511)
at java.logging/java.util.logging.FileHandler.<init>(FileHandler.java:307)
at test.Test.main(Test.java:11)
REPRODUCIBILITY :
This bug can be reproduced always.
Java(TM) SE Runtime Environment (build 9+181)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 10.0.15063]
A DESCRIPTION OF THE PROBLEM :
package test;
import java.io.IOException;
import java.util.logging.FileHandler;
import java.util.logging.Handler;
public class Test {
public static void main(String[] args) {
try {
Handler handler = new FileHandler("c:/Workspace/hoge.log");
} catch (SecurityException | IOException e) {
e.printStackTrace();
}
}
}
throws
java.nio.file.NoSuchFileException: c:Workspace\hoge.log.lck
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.newFileChannel(WindowsFileSystemProvider.java:116)
at java.base/java.nio.channels.FileChannel.open(FileChannel.java:292)
at java.base/java.nio.channels.FileChannel.open(FileChannel.java:340)
at java.logging/java.util.logging.FileHandler.openFiles(FileHandler.java:511)
at java.logging/java.util.logging.FileHandler.<init>(FileHandler.java:307)
at test.Test.main(Test.java:11)
REPRODUCIBILITY :
This bug can be reproduced always.
- relates to
-
JDK-8153250 java.io.File does not handle Windows paths of the form "D:" (no path) correctly
-
- Resolved
-
-
JDK-8189862 java.io.File constructor File(File, String) creates wrong path on Windows JDK9
-
- Closed
-
-
JDK-8130462 File.isAbsolute() does not cover all cases
-
- Closed
-