Project: AspectJ
Bug 108892 Load Time Weaving problem with Aspect Definition at 2 Levels of Hierarchy
Reported: 2005-09-06 22:05:34 | Status: resolved fixed

I am trying to weave into Tomcat with a system-level aspect (META-INF/aop.xml is found in a jar on the system classpath), and also have a Web application with an aop.xml properly deployed. When I try to run them both together, only the system-level aspects work. If I remove the system-level aspect jar from the classpath, the application-level aspects work. What would be a reasonable way to isolate this into a test case? If I could package up a simple system.jar and app.war file for Tomcat 5.5.9, would that be useful for you to use in debugging it? I tried making a simple standalone version with 2 aop.xml files in the same app classloader but that works just fine.

Files changed in fix:
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java tests/java5/ataspectj/ataspectj/hierarchy/AppContainerTest.java tests/java5/ataspectj/ataspectj/hierarchy/app/SubApp.java tests/src/org/aspectj/systemtest/ajc150/ataspectj/AtAjLTWTests.java weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java