BaseClassLoader.checkCacheAndBlackList leads to CNFEs
-----------------------------------------------------
Key: JBCL-101
URL:
https://jira.jboss.org/jira/browse/JBCL-101
Project: JBoss ClassLoader
Issue Type: Bug
Components: ClassLoader
Reporter: Brian Stansberry
Assignee: Brian Stansberry
Fix For: 2.0.6.GA
Fix for JBCL-100 leads to CNFEs when a scoped classloader is used. Problem is the call to
BaseClassLoader.checkCacheAndBlackList calls into
BaseClassLoaderDomain.checkClassBlackList, which throws the CNFE if the class isn't
meant to be loaded locally.
This all happens as part of a loadClass(String, boolean) call, when loadClass is checking
for a cached class. At this stage, the CNFE from the blacklist check should not be allowed
to propagate is it just means the class isn't available from the cache and the regular
classloading logic should be followed. Simple fix is to catch and trace log the CNFE then
continue.
A more sophisticated/performant fix might be to pass a param into the call to
BaseClassLoaderDomain that results in a null return instead of a CNFE. But for now I'm
going to stick with the simple fix.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira