3 ms·
You can redefine Math.round. It's an ordinary method from rt.jar. You can change rt.jar or you can redefine it with java agent. Not as straightforward as with
by vbezhenar 7y ago
You can redefine Math.round. It's an ordinary method from rt.jar. You can change rt.jar or you can redefine it with java agent.
Not as straightforward as with JS, but Java JIT still have to account for those things.
May be it will assume some things about standard classes for optimization, but for user classes that will be true anyway.
- ridiculous_fish 7y agoYou can really redefine an existing Java method at runtime? Well TIL!