[jboss-dev-forums] [JBoss Microcontainer Development] - Re: Testing Deployers with new Reflect + ClassPool
flavia.rainone@jboss.com
do-not-reply at jboss.com
Tue Dec 8 17:57:07 EST 2009
"alesj" wrote : "flavia.rainone at jboss.com" wrote :
| | - a few of the ClassPool tests are broken. I'll have to mimic the excludes mechanism in the ClassPools in order to have these tests working.
| |
| If the CP works properly on top of CL, it should not need such exclusion.
|
I also thought so, but I was wrong.
The ClassPools have their own parent and domain delegation structure, that mimics the ClassLoader's parent and domain structure. So, when we ask for a ClassPool to load a class, it will use this delegation structure to find and load the class. At the point that the delegation reaches the ClassPool corresponding to the AppClassLoader (the parent of default domain), the classpool is able of loading classes in excluded package. IMO, the only way of avoiding this is aborting the load of the class if it is in the excluded package. That's the same as saying that I have to mimic the exclusion mechanism with the classpools.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269690#4269690
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269690
More information about the jboss-dev-forums
mailing list