Static inner aspects cannot reference user defined pointcutstags/V_1_1_b5
@@ -5527,4 +5527,10 @@ | |||
<message kind="error" line="6"/> | |||
</compile> | |||
</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> |
@@ -0,0 +1,19 @@ | |||
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); | |||
} | |||
@@ -1,7 +1,18 @@ | |||
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"> | |||
<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> |