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.

AbstractImplementedPointcut.java 403B

12345678910111213141516171819202122
  1. /** @testcase PR#36736 implemented abstract pointcut */
  2. public class AbstractImplementedPointcut {
  3. public static void main(String[] args) {
  4. new C().go();
  5. }
  6. }
  7. class C {
  8. void go(){}
  9. }
  10. abstract aspect A {
  11. abstract pointcut pc() : call(void go()); // CE 14
  12. }
  13. aspect B extends A {
  14. pointcut pc() : call(void go());
  15. before() : pc() {
  16. throw new Error("do not run");
  17. }
  18. }