My apologies.  I had missed this intricacy of class loading.  I was under the
impression that *every* class loaded by a thread used it's context class
loader, unless the programmer explicitly used another one.

Tom

On Thu, 15 Feb 2001, you wrote:
> Tom:
> 
> No, I haven't assumed anything of the sort.  When one class directly
> references another in code, the JVM loads both classes with the SAME
> classloader.  It does not use Thread.currentThread().getContextClassLoader
> to load the second class.  Now, you can do dynamic classloading by calling
> loadClass explicitly, but you cant then explicitly reference that class name
> in your code the way Ivanhoe is doing.  Its not hard to test it out:


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to