[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Generated Classes not found if they do not match any of

kabir.khan@jboss.com do-not-reply at jboss.com
Mon Jan 26 10:14:36 EST 2009


I agree that classes should not get generated in another qualified package, so my test GeneratedClassesUnitTestCase. testImportAllGenerateClassInNewPackage() can be scrapped. AFAICT this will never happen in AOP, so it can go.

However, GeneratedClassesUnitTestCase.testImportAllGenerateClassInDefaultPackage() should remain. Say you are generating an AOP proxy for java.util.ArrayList() for a deployment. We cannot generate new classes in the java.util. package, so they are generated in the default package. The classloader used to create the proxy is the classloader of the deployment, since classes loaded by the bootstrap cannot see the ones from the aop (needed to access things like the Advisor, and the default interfaces the proxy gets such as AspectManaged) and deployment layers (in case of deployment specific inteface introductions).
https://jira.jboss.org/jira/browse/JBAS-5505

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4204731#4204731

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4204731



More information about the jboss-dev-forums mailing list