Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

IfPCDExprJoinPointVisibleCE.java 859B

12345678910111213141516171819202122232425
  1. aspect AspectForIfPCDExprJoinPointVisibleCE {
  2. // todo: derives from more general binding problems with named pointcuts
  3. pointcut errorAccessingThisJoinPointStaticPart ()
  4. : if (thisJoinPointStaticPart != null); // CE: can't bind name thisJoinPointStaticPart
  5. pointcut errorAccessingThisJoinPoint ()
  6. : if (thisJoinPoint != null) && if(thisJoinPoint.getSignature() != null); // CE: can't bind name thisJoinPoint
  7. before ()
  8. : within(IfPCDExprJoinPointVisibleCE)
  9. && errorAccessingThisJoinPoint() {
  10. System.err.println("before thisJoinPoint");
  11. }
  12. before ()
  13. : within(IfPCDExprJoinPointVisibleCE)
  14. && errorAccessingThisJoinPointStaticPart() {
  15. System.err.println("before thisJoinPointStaticPart");
  16. }
  17. }
  18. public class IfPCDExprJoinPointVisibleCE {
  19. public static void main(String[] args) {
  20. System.err.println("ok - main running after ");
  21. }
  22. }