Hi all!
Well, what I wanted is Class.isInstance(Object)
I don't remember who pointed this out, but thank you a lot!!! :-)
On Thu, 2003-02-20 at 16:35, Shapira, Yoav wrote:
>
> Howdy,
>
> > The problem is that I want to test if an object is subclass of a
> >java.lang.Class INSTANCE... Nons
Howdy,
> The problem is that I want to test if an object is subclass of a
>java.lang.Class INSTANCE... Nonsense example:
Maybe I'm still not understanding ;) But why doesn't the instanceof
operator work for you?
Your example:
> java.util.Date date1 = new java.util.Date();
> java.sql.Date da
rsday, February 20, 2003 11:27 AM
> To: Tomcat Users List
> Subject: RE: instance of (ot)
>
>
> Ok, I wasn't clear... let me re-write my mail:
> The problem is that I want to test if an object is subclass of a
> java.lang.Class INSTANCE... Nonsense exampl
> From: "Mike Jackson" <[EMAIL PROTECTED]>
> Sent: Thursday, February 20, 2003 11:06 AM
> Subject: RE: instance of (ot)
> Perhaps you ought to post a snippet of what doesn't work. I personally
> haven't had any problems with "instanceof", but w
Ok, I wasn't clear... let me re-write my mail:
The problem is that I want to test if an object is subclass of a
java.lang.Class INSTANCE... Nonsense example:
java.util.Date date1 = new java.util.Date();
java.sql.Date date2 = new java.sql.Date();
Class clasz = date1.getClass();
if (date
Maybe I'm missing something, but Class is a final class.
Quoting Mike Jackson <[EMAIL PROTECTED]>:
> Perhaps you ought to post a snippet of what doesn't work. I personally
> haven't had any problems with "instanceof", but without seeing what you're
> doing I don't think any of us can help.
>
>
[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 11:06 AM
To: Tomcat Users List
Subject: RE: instance of (ot)
Perhaps you ought to post a snippet of what doesn't work. I personally
haven't had any problems with "instanceof", but without seeing what you're
doing I don'
Perhaps you ought to post a snippet of what doesn't work. I personally
haven't had any problems with "instanceof", but without seeing what you're
doing I don't think any of us can help.
--mikej
-=-
mike jackson
[EMAIL PROTECTED]
> -Original Message-
> From: Felipe Schnack [mailto:[EM