You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PcdLookup.java 427B

12345678910111213141516171819
  1. import org.aspectj.testing.Tester;
  2. /** @testcase Bugzilla Bug 29691
  3. Static inner aspects cannot reference user defined pointcuts
  4. */
  5. public class PcdLookup {
  6. public static void main(String[] args) {
  7. }
  8. public static aspect Referencer {
  9. pointcut mainCall() : call(void main(..));
  10. pointcut myMainCall() : mainCall() && outer();
  11. }
  12. pointcut outer(): within(PcdLookup);
  13. }