-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
1.1
-
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();
}
}
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();
}
}
- duplicates
-
JDK-4024949 Unable to delete a directory unless it has no files in it.
-
- Closed
-