Other questions I saw about this topic were not about while the Java program is running or were unclear to me, so I'm asking a separate question

I'd like to know if there's a way to hook/override methods with JNI during runtime

It would work as Mixins *(like in [Fabric API](https://github.com/FabricMC/fabric))*, which "injects" code at the beginning or at the end of the method but with C++ and JNI

For example: there's a getter method that returns a field of a class but I want to change the return value to something I want instead of the expected value

I've ran into some topics that said about JVM Handles but I have no idea where to start searching it