Re: errors vs. exceptions

Date view Thread view Subject view Author view

From: Archie Cobbs (archie@whistle.com)
Date: Tue Dec 08 1998 - 15:48:55 EST


Godmar Back writes:
> Many API functions say they return null or raise a specific exception
> (not error) if they fail. For instance, Class.forName() says it will
> raise a ClassNotFoundException if a class is not found.
>
> In practice, however, Class.forName may raise a NoClassDefFoundError
> (in Sun's implementation.) It appears they simply propagate the failure
> through, just as we do now. This makes sense, as it gives the user
> the greatest possible amount of information.

I think no matter what we decide to do, it's important to file any
discrepancies between documentation and behavior in the JDK as bugs
on the JDK developers page (you can login to this page without being
'tainted'). That way, the documentation (and hence kaffe's compatibility)
gets tighter.

-Archie

___________________________________________________________________________
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:08 EDT