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.

pr115235b.aj 617B

12345678910111213141516171819202122232425262728
  1. abstract aspect GenericAbstractAspect<T> {
  2. abstract protected pointcut pc();
  3. before() : pc() {}
  4. }
  5. abstract aspect SubGenericAspect<T> extends GenericAbstractAspect<T> {
  6. abstract protected pointcut pc1();
  7. abstract protected pointcut pc3();
  8. protected pointcut pc() : pc1();
  9. protected pointcut pc2() : pc3();
  10. }
  11. // this should compile with no errors
  12. aspect Concrete2 extends SubGenericAspect<String> {
  13. protected pointcut pc() : pc1();
  14. protected pointcut pc1() :pc3();
  15. protected pointcut pc3() : execution(* *(String));
  16. }
  17. class C {
  18. public void method(String s) {
  19. }
  20. public void method2(int i) {
  21. }
  22. }