Due to changes in an API that I don't control and a very common reflection-based usage of said API, to patch some crashes I need to inject a method into a class during runtime that is restricted from being altered via ASM. It's a whole thing, I don't want to get into it.
Is there any way to inject a method (or even just pretend that there's a method there for people using reflective access, even if it doesn't have any behavior attached to it) without ASM?
However this happens, it's going to be illegal and unsafe, and I am aware of this. I'm trying to soft-patch a bytecode manipulation framework, so there isn't any legal way to do it.