#JavaAgent

Nicolas Fränkel 🇺🇦🇬🇪frankel@mastodon.top
2023-09-17

The #JVM is an excellent platform for #monkeypatching

I want to demo several approaches for monkey-patching in Java in this post.

As an example, I’ll use a sample for-loop. Imagine we have a class and a method. We want to call the method multiple times without doing it explicitly.

blog.frankel.ch/monkeypatching

#Java #AspectJ #ByteBuddy #instrumentation #JavaAgent

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst