79160207

Date: 2024-11-05 17:57:56
Score: 3
Natty:
Report link

Thanks @kriegaex!

But I think this is getting too convoluted. I tried various things:

  1. @Around("execution(* createGame*(..))") This was recognized but it threw an error because it found the controller method, not the service

  2. @Around("execution(* com.phil.cardgame.service.GameService.createGame*(..))") This worked

  3. @Around("crap") This should have thrown an exception "Pointcut is not well-formed...", but didn't and obviously the aspect was not called.

  4. @Around("execution(* com.phil.cardgame.service.GameService.createGame())") This was the original which didn't work, but now it does work.

So it seems this is some subtle intermittent thing which I believe is not worth further attention. I have gotten AOP working in other applications, so I won't waste your or my time on this. Thanks very much for your help!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @kriegaex
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: philb