Static inner aspects cannot reference user defined pointcutstags/V_1_1_b5
<message kind="error" line="6"/> | <message kind="error" line="6"/> | ||||
</compile> | </compile> | ||||
</ajc-test> | </ajc-test> | ||||
<ajc-test dir="bugs" pr="29691" | |||||
title="Static inner aspects cannot reference user defined pointcuts"> | |||||
<compile files="PcdLookup.java" /> | |||||
<run class="PcdLookup"/> | |||||
</ajc-test> | |||||
</suite> | </suite> |
import org.aspectj.testing.Tester; | |||||
/** @testcase Bugzilla Bug 29691 | |||||
Static inner aspects cannot reference user defined pointcuts | |||||
*/ | |||||
public class PcdLookup { | |||||
public static void main(String[] args) { | |||||
} | |||||
public static aspect Referencer { | |||||
pointcut mainCall() : call(void main(..)); | |||||
pointcut myMainCall() : mainCall() && outer(); | |||||
} | |||||
pointcut outer(): within(PcdLookup); | |||||
} | |||||
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"> | <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"> | ||||
<suite> | <suite> | ||||
<ajc-test dir="bugs" pr="29691" | |||||
title="Static inner aspects cannot reference user defined pointcuts"> | |||||
<compile files="PcdLookup.java" /> | |||||
<run class="PcdLookup"/> | |||||
</ajc-test> | |||||
<!-- | <!-- | ||||
<ajc-test dir="new" | |||||
title="work nicely with inner class method look-up rules and call-site advice" | |||||
keywords="from-resolved_10x"> | |||||
<compile files="InnerMethods.java"/> | |||||
<run class="InnerMethods"/> | |||||
</ajc-test> | |||||
--> | --> | ||||
</suite> | </suite> |