I have this snippet of code:
@Aspect
@Component
open class Advice
{
@AfterThrowing(pointcut = "execution(* project.service..*(..)) && !within(is(FinalType))", throwing = "throwable")
open fun sendError(throwable: Exception)
{
println("exception thrown")
}
}
It seems to be working okay, except that IJ does not tell me what methods are advised - this functionality works only when I rewrite this class to Java.
(this little icon on line 12 is what is missing in Kotlin - it shows the list of methods advised by the advice. It's present when the code is written in Java)
Any ideas? Thanks in advance.