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

some_Dir.delete()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.1
    • core-libs
    • sparc
    • solaris_2.5

      The following test case shows the JDK1.1beta3's failure to delete a
           directory if the directory has files in it. If it is compiled under
           JDK1.1beta3, it fails to delete. If it is compiled under
           JDK1.0, it deletes a directory including any files it has in it which is
           what delete should do.


      import java.io.*;

      class DeleteBug {
           DeleteBug() {
           }
           public static void main(String args[]) {
                File a_Directory = new File("a_test_directory");
                a_Directory.delete();
           }
      }

            mr Mark Reinhold
            mowerfel Marc Owerfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: