Has anyone been able to use AspectJ w/ Spring Boot and Kotlin? I’m trying to instrument a third party library, but for some reason it isn’t picking up my settings in
META-INF/aop.xml
. Also, when instrumenting Kotlin classes, it throws
org.aspectj.weaver.loadtime.Aj - com/company/<NameOfKotlinClass>MethodAccess java.lang.RuntimeException: Illegal type for StackMapType: 12
.
Eric
03/25/2022, 5:36 PM
Oh… the spring boot assembly puts files in
META-INF
in to
BOOT-INF/classes/META-INF
So it seems that I’ll need to package that differently for the agent to find it.