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]

RE: unimplemented methods


=?iso-8859-1?Q?=D8yvind=5FHarboe?= writes:
 > > This has to stop.  If an method does not do what it
 > > is supposed to do, then it must throw an exception.
 > 
 > I think this is generally a good idea. My first encounter
 > with this sort of thing was Thread.interrupt(), which is
 > a C++ method, though I assume the same rules apply.
 > 
 > Perhaps the behaviour of unimplemented methods could be
 > made run-time configurable?

I am strongly opposed to this idea.  We have enough bloat as it is:
it's not really our fault, but I don't want any more.

UnsupportedOperationException is a good choice.  Any subclass of Error
is not, because according to the spec Error "indicates serious
problems that a reasonable application should not try to catch."

Andrew.


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