Name: nkR10003 Date: 07/08/2002
Every call to a file representing floppy disk root directory (isDirectory, exists)
popups windows "No Disk" dialog under win2000 by default. In most cases this action
is absolutely meaningless.
When security manager exists, the File.listRoots() method also popups "No Disk"
dialog.
Also this behavior does not appear under windows 98.
Example below demonstrates this problem:
------------------example--------------------
import java.io.File;
public class test {
public static void main(String[] args) {
System.setSecurityManager(new SecurityManager());
File.listRoots();
}
}
----------------output:----------------------
%java -version
java version "1.4.1-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-rc-b16)
Java HotSpot(TM) Client VM (build 1.4.1-rc-b16, mixed mode)
---------------------------------------------
======================================================================
- duplicates
-
JDK-4089199 File creation on removable drives without a disk brings up a dialog (win)
- Resolved