https://bz.apache.org/bugzilla/show_bug.cgi?id=62830

--- Comment #4 from Igal Sapir <isa...@apache.org> ---
(In reply to Mark Thomas from comment #2)
> I think it would be worth updating the Javadoc for the new methods to make
> it clear that System.load[Library]() associates the loaded library not with
> the current thread context class loader but with the class loader of the
> class that calls System.load[Library](). Typically, this would be the Common
> class loader but that may vary depending on configuration and usage.

Please check r1844162 for accuracy.  I hope that I understood you correctly. 
Text below for convenience:

System.loadLibrary() associates the
loaded library with the class loader of the class that called
the System method. A native library may not be loaded by more
than one class loader, so calling the System method from a class that
was loaded by a Webapp class loader will make it impossible for
other Webapps to load it.

Using this method will load the native library via a shared class
loader (typically the Common class loader, but may vary in some
configurations), so that it can be loaded by multiple Webapps.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to