Hacker News new | ask | show | jobs
by half-kh-hacker 3125 days ago
You can write a Java agent to overwrite the classfiles as they're loaded.

At startup, you can use the `-javaagent:<path/to/jar>` option, and you can also bind an agent to other JVMs, programmatically, at runtime with a bit of hackery.