tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Loading Super Classes with ClassLoader in Tomcat
Date Tue, 11 Oct 2011 15:32:50 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

All,

On 10/10/2011 4:41 PM, Christopher Schultz wrote:
> I have a question, though, since the default parent ClassLoader of
> any ClassLoader /should/ be the current thread's context
> ClassLoader, so none of the above code should be necessary.

I was wrong. ClassLoader Javadoc says:

protected ClassLoader()
          Creates a new class loader using the ClassLoader returned by
the method getSystemClassLoader() as the parent class loader.

So, default is system ClassLoader, not the current Thread's context
ClassLoader.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6UYaEACgkQ9CaO5/Lv0PA0pgCfVWYnjvB2LCcK0sCYmuGJ34ZN
f+oAoMCIXTl5zWLmaHXqIePxWmEeFMij
=70Ez
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message