There is a semantic difference between something not supported, and something not 
implemented.  There are iterators where I purposely throw an 
UnsupportedOperationException() for remove() because it would be impossible to do.  
That is very different from a NotYetImplementedException which tells the programmer 
that they should be able to do this, but not quite yet.

Perhaps the default message for the NotYetImplementedException should be "patches 
welcome."

--Avery

-----Original Message-----
From: Sascha Brawer [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 11:34 AM
To: GNU Classpath
Subject: Re: NYIException


Hi Andy,

>> [NotYetImplementedException]
> [JavaDoc tag]
>
>Do you mean additionally to the exception or instead?

With a JavaDoc tag (or some other convention for comments), there would
be no need to distinguish between NotYetImplementedException_1_3,
NotYetImplementedException_1_4, etc.

I agree that some exception should be thrown. But it might suffice to
just throw java.lang.UnsupportedOperationException. Not that I would
oppose a special NotYetImplementedException. Living in a neutral country,
I don't have an explicit opinion about such matters. :-)

-- Sascha

Sascha Brawer, [EMAIL PROTECTED], http://www.dandelis.ch/people/brawer/ 




_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath




_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath

Reply via email to