Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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. }