[ https://issues.apache.org/jira/browse/OPENEJB-2070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13893520#comment-13893520 ]
Romain Manni-Bucau commented on OPENEJB-2070: --------------------------------------------- it is faster for > 4-5 threads in general which is more or less never for this classloader. > Potential deadlock in URLClassLoaderFirst > ----------------------------------------- > > Key: OPENEJB-2070 > URL: https://issues.apache.org/jira/browse/OPENEJB-2070 > Project: OpenEJB > Issue Type: Bug > Components: container system > Affects Versions: 4.6.0 > Environment: NA > Reporter: Andy Gumbrecht > Fix For: 4.6.1 > > > 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. -- This message was sent by Atlassian JIRA (v6.1.5#6160)