Windows上でのJavaのファイルアクセスが特定の場合に微妙な感じ。
コード
public class Main { public static void main(String[] args) throws IOException { System.out.println("c:=" + new File("C:").getCanonicalPath()); System.out.println("c:\\=" + new File("C:\\").getCanonicalPath()); } }
実行結果
c:=C:\Users\tomo\Documents\NetBeansProjects\Java8 c:\=C:\
どっかでバグりそうだ。