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.

InnerPointcut.java 469B

1234567891011121314151617181920
  1. // for Bug#: 32428
  2. import org.aspectj.testing.Tester;
  3. public class InnerPointcut {
  4. public static void main(String[] args) {
  5. Tester.checkEqual(TrackTestCase.note, "ran");
  6. }
  7. pointcut testcutOuter(): within(InnerPointcut);
  8. static aspect TrackTestCase {
  9. static String note = "not run yet";
  10. pointcut testcut() : execution(public void mai*(..));
  11. before() : testcut() && testcutOuter() {
  12. note = "ran";
  13. }
  14. }
  15. }