Martin Cooper wrote:
Could you say more about this, please? I happen to disagree on
exceptions as
inner classes being a bad idea; FileUpload has done this for years, without
any problems. But I'm always interested in hearing new perspectives...
I guess its stylistic, and therefore subjective. But I see an exception
as a critical system object, and not one that should be relegated to
inner class status.
I pretty much only use inner classes for the internals of the main
class. Details that shouldn't be exposed as part of the public API,
except for very specialist users. Catching a cancellation exception
doesn't seem to be a special case.
For example, I also dislike Map.Entry, and think it should be MapEntry.
(Well, actually I think map entries are the biggest mistake in the
collections framework but thats another story...)
Stephen
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]