Re: avoiding ClassCastException
From: kjc (ksitron_at_elp.rr.com)
Date: Mon, 09 Aug 2004 04:36:20 GMT
Ever heard of security,genious.
And, if you're clueless about the reference to security in the context
of checking for the exact class, then. As I stated before, this
discussion is a waste of good oxygen.
Thomas G. Marshall wrote:
> kjc <firstname.lastname@example.org> coughed up the following:
>>This is a ridiculous discussion, since, if you have to rely on
>>instanceof to make your development correct. You should not be
> Huh? RTTI has a place. It's easy to abuse, but many times for pragmatic
> reasons it becomes critical.
> And it was /YOU/ who suggested the worst idea of all: Checking the precise
> name of the class.