[2126] in java-interest

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

Re: WWWClassLoader problems (mobile objects)

daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Mon Sep 25 21:58:34 1995

Date: Mon, 25 Sep 1995 16:45:33 -0800 (PDT)
From: Arthur van Hoff <Arthur.Vanhoff@Eng.Sun.COM>
Reply-To: Arthur van Hoff <Arthur.Vanhoff@Eng.Sun.COM>
To: Chanda Dharap <chanda@PRPA.Philips.COM>
Cc: java-interest@java.Eng.Sun.COM



Hi Chanda,

> I'm trying sample code to load a class from InputStream.
> Following a couple of postings on this mailing list I tried using the 
> WWWClassLoader definitions.
> 
> - If I understand correctly loadClass(InputStream is) is defined in
> WWWClassLoader.java.  

In alpha3 you are right.

> - This reads the input buffer and calls defineClass(...)

I think so.

> - defineClass does resolution and further "native" stuff which I assume
> is generating the tree and checking for violations etc..

Right again.

> 1) Have I understood this correctly ? So if the referenced classes are
> also on remote machines I have to make sure they are all loaded
> before the current one, by explicitly calling loadClass ??

The system automatically resolves referenced classes by making calls
to loadClass(String).

> 2) I'm having other problems with WWWClassLoader. However, before
> posting any questions I wonder if anyone has saved a copy of Chuck
> McManis's "Secrets of the ClassLoader" ? Or any other pointer to
> information that may be useful in understanding this buisness..

Have fun,

	Arthur van Hoff

-
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