@AspectJ. Pointcut for scala (and probably java) lambdas
问题 Is it possible to have poitcut for scala lambdas? If I'm not mistaken scala lambdas now compiled in the same way as java lambdas, so I think my question is also applicable for java lambdas, but I'm not sure. Here is the code. Basically I want to advice Runnable instances. And it works perfectly if I use classes or anonymous class, but it doesn't work if I use lambdas. @Around("execution(* (com.test..* && java.lang.Runnable+).run())") def runnableAspect(pjp: ProceedingJoinPoint): Any = {