Submitted On 14-NOV-2003
MartinHilpert
what about File.erase() ?
Submitted On 03-JAN-2004
coxcu
Another problem with always returning a boolean is the
confusion that results if the file didn't exist. I argue
that an IllegalStateException should be thrown if the file
doesn't exist.
Submitted On 25-NOV-2004
_win32pro
Agree 100% with that. Causes an unbelievable grief!!!
Submitted On 22-AUG-2007
KristianRink
I stumbled across this only a while ago and wonder while, > 2 years later, this is still open. Voted for it. Looking at java.io.File I see most essential methods throwing exceptions given something goes wrong - what kind of considerations keep this from happening with File.delete()?
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|