🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7210

Re: ClassCastException that doesn't make sense

#7210
From: Torsten Welches
Date: Tue, 03 Jul 2001 05:25
13 lines
1322 bytes
Lifeng <lifeng@telocity.com> wrote:

>//first get a NewEnrolleeOTW object from a List using a key
>Object obj = covotw.get(KEY_REF_MEMBER_OTW);
>//Then cast the object into sub-class NewEnrolleeOTW. This is 
>where I get the ClassCastException
>NewEnrolleeOTW neotw = (NewEnrolleeOTW)obj;

what does "neotw instanceof NewEnrolleeOTW" and 
"neotw.getClass().getName()" return?

Torsten
Technical Details
Message-ID: <3b41572c$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews
References: <3B414660.789CD256@telocity.com>

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-02 22:35:43 PST
From: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Sender: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Reply-To: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Subject: Re: ClassCastException that doesn't make sense
Newsgroups: borland.public.jbuilder.java.language
X-User-Info: 193.158.55.74 193.158.55.74    
References:  <3B414660.789CD256@telocity.com> 
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3b41572c$1_1@dnews>
Date: 2 Jul 2001 22:25:00 -0700
X-Trace: dnews 994137900 207.105.83.65 (2 Jul 2001 22:25:00 -0700)
Lines: 13
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews