Kotlin inline extension function on an imported java class

294 Views Asked by At

I have a backend Springboot kotlin project built with gradle. I'm importing a number of java libraries. My target JVM is 11

I tried to write an inline reified extension function for one of the imported classes and got a compiler error "Cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8"

Am I correct in understanding that the imported jar was built with JVM 1.8 and there isn't much I can do here?

0

There are 0 best solutions below