Project: AspectJ
Bug 130722 poincut references in percflow instantiation model aspects can not be resolved
Reported: 2006-03-07 05:53:19 | Status: resolved fixed

Take these two aspects and this litte class: // source1 package test1; import test.Test; public aspect PointcutProvider { public pointcut test(): execution(* Test.*(..)); } // source2 package test; import test1.PointcutProvider; public aspect PointcutConsumer percflow(flow()) { // compiler issues the following line with // can not find pointcut test on test.PointcutConsumer pointcut mytest(): PointcutProvider.test(); // this also does not work with the same error message pointcut mytest(): test1.PointcutProvider.test(); pointcut flow(): mytest(); } // source3 package test; public class Test { public void foo() { } } Changing the consumer aspect to singleton instantiation model works.

Files changed in fix:
tests/bugs152/pr130722/test/Test.java tests/src/org/aspectj/systemtest/ajc150/GenericITDsDesign.java tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java weaver/src/org/aspectj/weaver/CrosscuttingMembers.java weaver/src/org/aspectj/weaver/CrosscuttingMembersSet.java weaver/src/org/aspectj/weaver/ResolvedType.java weaver/testsrc/org/aspectj/weaver/bcel/NonstaticWeaveTestCase.java weaver/testsrc/org/aspectj/weaver/bcel/PointcutResidueTestCase.java weaver/testsrc/org/aspectj/weaver/bcel/WeaveOrderTestCase.java