https://bz.apache.org/bugzilla/show_bug.cgi?id=56530
--- Comment #19 from Konstantin Kolinko <knst.koli...@gmail.com> ---
(In reply to Christopher Schultz from comment #18)
> 
> 2. If the branch is not tolerable at runtime, perhaps the branch can be
> executed a single time to install a delegate adapter, something like this:
> 

This cannot be solved with an adapter that is installed atop the current
WebappClassLoader class.

See [1]. The class itself and all of its parent classes must be registered as
parallel-capable.

This needs
1. Refactoring, involving extraction of common parent class.

2. Implementation of alternative class loader class that is parallel-capable.

The default implementation (WebappClassLoader) must stay with being non
parallel capable. The common parent class must be registered as
parallel-capable.

If ClassLoader.registerAsParallelCapable() is called via reflection, I wonder
whether the registerAsParallelCapable() method can correctly determine the
calling class. We are not calling the method directly, but via reflection APIs.
It needs a proof of concept.

3. Testing, testing, testing...


[1]
http://docs.oracle.com/javase/7/docs/api/java/lang/ClassLoader.html#registerAsParallelCapable%28%29

-- 
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