<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>
--- /dev/null
+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">
<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>
\ No newline at end of file