"alesj" wrote : "flavia.rainone(a)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#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...