I have a Java library that creates a proxy using ASM.
At one point, user sends a Kotlin class to it. I can detect it is a Kotlin class from Java, but I don't know how can I make a proxy from it? Everything what I read from such class is meaningless.
The scenario is the following
- user sends a Kotlin class
- I make a proxy
- finally, I make an instance of such class
what would be the best way to do so?
EDIT
I just realized that one of the reasons why I can't override Kotlin functions is because they are generated as final
methods in the bytecode. Is there a way to tell Kotlin not to do so?