[Kaffe] java.io.File(Input|Output)Stream question.
dejong at cs.umn.edu
Fri Feb 12 16:40:51 PST 1999
On Fri, 12 Feb 1999, Patrick Tullmann wrote:
> Moses DeJong wrote:
> > Do you have a better idea?
> Change FileNotFoundException to FileNotOpenedException.
I agree that is a workaround. In fact this is sort of what Sun did
for JDK1.2. The 1.1 error message for an unreadable file named
"unreadable" was "unreadable". In JDK 1.2 the error message was
changed to "unreadable (Permission denied)". It does not really
fix the problem but it gives you a little more info about what
> The string describing the reason would say if it was a permission
> problem or a non-existant file, a bad directory, an unavailable NFS
> mount, etc. Seems cleaner that throwing IOException when file
> permissions are incorrect.
> But, I don't think we have the liberty of redefining basic parts of
> Java like this. All I was trying to point out with the compile-time
> problems is the cost associated with your fix. I think you're right
> that this is broken, but I don't know if its worth fixing.
More information about the kaffe