🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Dynamic Class Loading

#14393
From: Shane S. Smith
Date: Sun, 19 Sep 1999 00:00
19 lines
1298 bytes
I have a situation that is driving me crazy, does anyone have ideas?

I have an abstract class - "abstractClass"

From it I specify another concrete class - "concreteClass"

I made a ClassLoader that goes out and dynamically loads in "concreteClass"
from a directory and creates an object of it using instanceOf();
"concreteObject", no problem so far.

When I inspect "concreteObject" in the debugger, all data appears to be in
order. When I try to cast "concreteObject" to it's parent type,
"abstractClass", I get a Class Cast Exception.

Anyone have any ideas? Please feel free to EMAIL me as well...

_Shane

shanewas@home.com
Technical Details
Message-ID: <siYE3.1358$7E.13983@news.rdc1.ne.home.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,e5d3ebd4549a1569,start
X-Google-Attributes: gidf74b3,public
From: "Shane S. Smith" <shanewas@home.com>
Subject: Dynamic Class Loading
Date: 1999/09/19
Message-ID: <siYE3.1358$7E.13983@news.rdc1.ne.home.com>
X-Deja-AN: 526892028
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
X-Complaints-To: abuse@home.net
X-Trace: news.rdc1.ne.home.com 937709848 24.4.225.185 (Sat, 18 Sep 1999 19:57:28 PDT)
Organization: @Home Network
X-MSMail-Priority: Normal
NNTP-Posting-Date: Sat, 18 Sep 1999 19:57:28 PDT
Newsgroups: borland.public.jbuilder.java.language