RE: instance of (ot)

2003-02-20 Thread Felipe Schnack
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

RE: instance of (ot)

2003-02-20 Thread Shapira, Yoav
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

RE: instance of (ot)

2003-02-20 Thread Mike Jackson
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

Re: instance of (ot)

2003-02-20 Thread Will Hartung
> 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

RE: instance of (ot)

2003-02-20 Thread Felipe Schnack
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

RE: instance of (ot)

2003-02-20 Thread Kris Schneider
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. > >

RE: instance of (ot)

2003-02-20 Thread Filip Hanik
[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'

RE: instance of (ot)

2003-02-20 Thread Mike Jackson
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