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.

SuperPointcutCE.java 608B

123456789101112131415161718192021222324252627
  1. public class SuperPointcutCE {
  2. public static void main(String[] a) {
  3. new C().run();
  4. }
  5. }
  6. class C {
  7. public void run(){ System.out.println("c");}
  8. }
  9. abstract aspect AA {
  10. pointcut pc() : call(public * *(..)) && !within(AA+);
  11. before() : pc() {
  12. System.out.println("here: " + thisJoinPointStaticPart);
  13. }
  14. }
  15. /** @testcase PR#40858 weaver trace on mis-qualified pointcut reference */
  16. aspect B extends AA {
  17. pointcut pc() : super.pc() // CE super not allowed in 1.1
  18. && !call(void println(..));
  19. pointcut blah() : UnknownType.pc(); // CE
  20. }