[2571] in java-interest
Re: throws declataration in Java/beta
daemon@ATHENA.MIT.EDU (Gary Aitken)
Wed Oct 4 20:31:41 1995
Date: Wed, 4 Oct 1995 10:20:36 -0600
From: garya@village.org (Gary Aitken)
To: flar@bendenweyr.Eng.Sun.COM (Jim Graham), garya@village.org
Cc: java-interest@java@sun.com
>> It seems to me that this reasoning has a flaw.
>> It assumes that the base class designer can forsee all possible algorithms
>> needed by all possible subclasses, and include the necessary exception
>> declarations to cover them. Unfortunately, it can't, which is why the
>> whole problem arises. No base class can forsee anything about the
>> mechanisms needed by a subclass to implement a different but functionally
>> equivalent or complementary, task.
>
>Can you give a concrete example? If a subclasser wants to throw a new
>kind of exception, then he is most likely trying to fit a round peg into
>a square hole...
The examples Thomas (tmb@best.com) provided exemplify the problem well,
I think.
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