some_Dir.delete()

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P2
    • None
    • Affects Version/s: 1.1
    • Component/s: 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();
           }
      }

            Assignee:
            Mark Reinhold
            Reporter:
            Marc Owerfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: