Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.6.0
-
None
-
NA
Description
Calling org.apache.openejb.util.classloader.URLClassLoaderFirst#loadClass from one thread may cause a deadlock if Class.forName is called from another thread, as this internally calls ClassLoader.getCallerClassLoader() - Which may be the same URLClassLoaderFirst instance.
Adding an ReentrantLock should be a viable solution.