[Kaffe] java.io.File(Input|Output)Stream question.

Godmar Back gback at cs.utah.edu
Fri Feb 12 16:38:34 PST 1999

> On Fri, 12 Feb 1999, Patrick Tullmann wrote:
> > > The problem is that they throw a FileNotFoundException. The correct
> > > thing to do in this case is to throw an IOException.
> Do you have a better idea? This is a bug in the JDK implementation
> so I do not think fixing it is a bad thing. It could break some
> existing code but there is no other way to fix it. Sun is not
> going to change the JDK implementation soon (even if they wanted to
> JDK1.2 and JDK1.1 both implement this incorrect throws clause).
> When will these problems ever get fixed if "bug compatibility" is
> all we strive for.

We're also striving for compliance with the spec.  The spec
says FileInputStream throws FileNotFoundException.  If we changed that,
programs wouldn't compile anymore, like Pat said.  It's not really
up to us to change the spec unless we want to define our own 

People write their programs to Sun's spec, we want to be able to
run these programs.

	- Godmar

More information about the kaffe mailing list