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.

LazyTjpTest1.java 498B

123456789101112131415161718192021
  1. public class LazyTjpTest1 {
  2. public void test1 () { }
  3. public void test2 () { }
  4. private static aspect Aspect2 {
  5. // OK, no tjp used in the advice
  6. void around () : execution(public void test1()) {
  7. System.out.println("Aspect2.around() ");
  8. proceed();
  9. }
  10. // Warning: tjp used in around advice so can't apply lazyTjp
  11. void around () : execution(public void test2()) {
  12. System.out.println("Aspect2.around() " + thisJoinPoint);
  13. proceed();
  14. }
  15. }
  16. }