This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Throwing exceptions from unimplemented classes?


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

We did this a little bit before, and it was disastrous.  It means that
people don't get a compile time error but a runtime error instead.

If you really need to do this sort of thing, whayt not use
Class.getMethod?

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]