]
Adrian Brock updated JBCL-17:
-----------------------------
Attachment: jboss-classloader.jar
New ClassLoader not finding generated classes in the bootstrap
classloader
--------------------------------------------------------------------------
Key: JBCL-17
URL:
http://jira.jboss.com/jira/browse/JBCL-17
Project: JBoss ClassLoader
Issue Type: Bug
Components: ClassLoader
Affects Versions: JBossCL.2.0.0.Beta12
Reporter: Adrian Brock
Assigned To: Adrian Brock
Fix For: JBossCL.2.0.0.CR1
Attachments: jboss-classloader.jar
An optimisation in the new classloader is causing a backwards compatibility problem.
When we load classes from the parent (bootstrap) classloader,
we first check to see whether we can getResource() on the class file.
This avoids excessive locking when many threads are trying to loadClass() on that
classloader.
However, if the class is a runtime generated class against that classloader
getResource()
will return null, leading to a ClassNotFoundException.
While we've always done this optimization for JBoss ClassLoaders, it looks like we
can't to do
this non-jboss classloaders and maintain backwards compatibility.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: