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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.6

      Description



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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: