Community
Participate
Working Groups
When writing aspects with cycles in the advice precedence, get warning "circular dependency at {join point}" -- should be "circular advice dependency..." or "circular advice precedences at {join point} -- reorder the advice in the aspect". FWIW, here's an example of circularity in advice precedence: ---- aspect A { pointcut crun() : execution (void run()) ; before() : crun() {} after() returning : crun() {} void around() : crun() { proceed(); } } ---- See programming guide for more discussion of circularity in advice precedence.
This will be an easy change to incorporate in 1.2
Fixed in tree: sample new message: C:\ColyerRoot\...\tests\bugs\CircularAdvicePrecedence.java:6:0 circular advice dependency at method-execution(void Runner.run()) also fixed a related problem whereby the message for declare precedence circularities was out of date: FROM: circularity in declare dominates, '*' occurs more than once TO: circularity in declare precedence, '*' occurs more than once