Article View: borland.public.jbuilder.java.language
Article #7213Re: ClassCastException that doesn't make sense
From: Lifeng
Date: Tue, 03 Jul 2001 14:39
Date: Tue, 03 Jul 2001 14:39
29 lines
1688 bytes
1688 bytes
Thank you for your reply. The obj.getClass().getName() returns the right name with full qualified path name. However, obj instanceof NewEnrolleeOTW returns false. It can't be caused by different classes with the same name -- there is only one package contains class NewEnrolleeOTW in the whole project. FYI, this NewEnrolleeOTW is a serilazable object that passed from a calling object into an EJB. The exception occurred in the EJB. Please help. Lifeng Torsten Welches wrote: > Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no> wrote: > > >That would need to be "obj instanceof..." and obj.getClass().getName(). > > oops, yes, sure. Thanks, Tor. > > Torsten
Technical Details
Message-ID:
<3B41D922.53A88264@gocentrics.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!grolier!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3B414660.789CD256@telocity.com> <3b41572c$1_1@dnews> <u3d8e4hg3.fsf@sds.no> <3b4194be$1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,9bba90999259f167 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-07-03 07:28:16 PST Message-ID: <3B41D922.53A88264@gocentrics.com> Date: Tue, 03 Jul 2001 09:39:30 -0500 From: Lifeng <lifeng@gocentrics.com> X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: Re: ClassCastException that doesn't make sense References: <3B414660.789CD256@telocity.com> <3b41572c$1_1@dnews> <u3d8e4hg3.fsf@sds.no> <3b4194be$1_2@dnews> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 207.247.42.2 X-Trace: dnews 994169628 207.247.42.2 (3 Jul 2001 07:13:48 -0700) Lines: 30 Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!grolier!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews