[2214] in java-interest

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

Re: throws declataration in Java/beta

daemon@ATHENA.MIT.EDU (Gary Aitken)
Wed Sep 27 01:50:45 1995

Date: Tue, 26 Sep 1995 22:09:47 -0700
From: garya@village.org (Gary Aitken)
To: Arthur van Hoff <Arthur.Vanhoff@Eng.Sun.COM>, dufourd@enst.enst.fr
Cc: java-interest@java.Eng.Sun.COM


>It is very important to realize that a Java class is a guaranteed interface.
>If an method is declared to throw a certain set of exceptions than there is no
>way a sub class can change that. At first this may seem restrictive, but after
>a while you will realize that it is wonderful to have this guarantee. 

It's not clear to me what's so wonderful about this guarantee.
There is no similar guarantee that a subclass will not compromise the intended
behavior of its base in numerous other ways.  What makes exceptions special?

Gary Aitken		garya@village.org
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

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