[2692] in java-interest

home help back first fref pref prev next nref lref last post

Subclassing applets doesn't work ??

daemon@ATHENA.MIT.EDU (Bob Beck)
Tue Oct 10 21:54:59 1995

Date: Tue, 10 Oct 95 17:04 PDT
To: java-interest@java.sun.com
From: Bob Beck <rbk@ibeam.jf.intel.com>

I've been using Java Alpha3 on NT, and ran into a snag.  I'm trying to make
a customized version of one of the TickerTape classes.  So, following good
OO form, I made a subclass that adds the new behaviour.  However, it doesn't
look like HotJava can load an applet class if it's a subclass of another
Applet subclass...   If I change my <APP> tag to reference the superclass (a
direct subclass of Applet), it works.  If I use the customized one (a
"grandchild" subclass of Applet), it fails to load with messages like the
following in the weblog:

DocumentSwitcher find class RbkTicker
Opening stream to: http://rbk.jf.intel.com/JavaFuss/classes/RbkTicker.class
to get RbkTicker
Opening stream to: http://rbk.jf.intel.com/classes/RbkTicker.class to get
RbkTicker
Applet RbkTicker from http://rbk.jf.intel.com/JavaFuss/. not loaded.

I followed some of the code in HotJava and the class loader, and I think
it's dying in ClassLoader.defineClass() due to an exception.

Am I missing something (I hope ;-) or is this a serious problem?
--
Bob Beck                rbk@ibeam.intel.com     CompuServe: 71674,106
Intel Corporation       (503)264-8856           AOL: RDBeck

-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post