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.

ChildMethodCE.java 660B

123456789101112131415161718192021222324252627282930
  1. package child;
  2. import parent.ParentMethodCE;
  3. import org.aspectj.testing.*;
  4. public class ChildMethodCE {
  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. class Target {
  15. public void run(){
  16. Tester.event("run");
  17. }
  18. }
  19. /** @testcase PR#647 attempt to concretize abstract aspect without access to abstract member method */
  20. class ParentChild extends ParentMethodCE { // expect CE here: child does not define "defineMethod()" b/c inaccessible
  21. protected void defineMethod() {}
  22. }