[3023] in java-interest

home help back first fref pref prev next nref lref last post

Re: String.substring lies about what exceptions is throws

daemon@ATHENA.MIT.EDU (Jim.Graham@Eng.Sun.COM)
Thu Oct 26 22:55:35 1995

Date: Thu, 26 Oct 1995 17:46:21 -0700
To: java-interest@java.Eng.Sun.COM, jpayne@starwave.com
From: Jim.Graham@Eng.Sun.COM


> It doesn't declare it's throwing any exceptions ...

It is throwing subclasses of "RunTimeException".  Those don't have to
be declared (as I've explained numerous times before...).

Basically, "you gave me bad parameters" is not useful information
informing the caller of some valid, but abnormal, situation (as in an
IOException) - it's a programming bug.  Detecting bad parameters is not
part of the API, it is protection for the implementation.

> Was the prebeta release compiled with the prebeta compiler?  I think not.

Was too, I know so...  ;-)

				...jim
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post