Search code examples
handleraspectj

Capture in aspectj a method invocation within a catch


I would like to know if a specific method is invoked within a catch, that is, to capture a method's call that takes place within a catch. Is It posible? Thank you! Bea


Solution

  • Actually there is a handler() pointcut in AspectJ, but it does not work in connection with cflow() and also only in before() advices as of today (version 1.9.2). The question is interesting, though, so I created an Bugzilla enhancement request for it.