Relates :
|
|
Relates :
|
|
Relates :
|
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.
|