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.

ChildCE.java 779B

1234567891011121314151617181920212223242526272829303132333435
  1. package child;
  2. import parent.ParentCE;
  3. import org.aspectj.testing.*;
  4. public class ChildCE implements I {
  5. public static void main (String[] args) {
  6. new Target().run();
  7. Tester.checkAllEvents();
  8. }
  9. static {
  10. Tester.expectEvent("define");
  11. Tester.expectEvent("run");
  12. }
  13. }
  14. interface I {
  15. public pointcut fromInterface(): call(* *(..));
  16. }
  17. class Target {
  18. public void run(){
  19. Tester.event("run");
  20. }
  21. }
  22. /** @testcase PR#647 concrete aspect unable to access abstract package-private pointcut in parent for overriding */
  23. aspect ParentChild extends ParentCE implements I {// expect CE here: child does not define "define()" b/c inaccessible
  24. protected pointcut define()
  25. : call(public void Target.run());
  26. }