Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4711632

new File("a:\\").isDirectory() popups "No Disk" dialog under win2000

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.0
    • core-libs
    • sparc
    • solaris_2.6



      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)
      ---------------------------------------------
      ======================================================================

            mr Mark Reinhold
            knasunw Kna Kna (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: