Throwing exceptions from unimplemented classes?

Tom Tromey tromey@redhat.com
Tue Oct 12 19:17:00 GMT 2004


>>>>> ">" == Doctor Bill <docbill@gmail.com> writes:

>> Excuse the newbie question, but has there been any consideration given
>> to throwing a RuntimeException from unimplemented classes?

We've tried this in the past, but it has turned out to be more
confusing to have non-working stubs than to simply omit the unwritten
classes and methods. In the latter case, you can know pretty quickly
that your code doesn't have a chance of working. So, we decided a
while ago not to do this any more.
Tom


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /