Byte Buddy

Runtime code generation for the Java virtual machine. (by raphw)

Byte Buddy Alternatives

Similar projects and alternatives to Byte Buddy

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better Byte Buddy alternative or higher similarity.

Byte Buddy reviews and mentions

Posts with mentions or reviews of Byte Buddy. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-12-06.
  • Proposed: A new CMake scripting language usable alongside existing one
    9 projects | | 6 Dec 2022
    > can you show an example of how you'd parse, say, a

    The canonical way to do such a thing is through the java annotation processing api [1] and using a tool like java poet [2]. Before you did that, you'd probably decide if you wanted to instead use bytecode generation with a library like bytebuddy [3]

    But, assuming for some reason, you wanted to torture yourself and actually consume a file and apply a regex, then you'd probably pull out the "maven-replacer-plugin" [4] and configure that for the task at hand. (or use your favorite templating language plugin. There's a million of them).

    Though, to be fair, this really isn't something that comes up in regular java programming due to the nature of the ecosystem. Anything you'd want to codegen likely already has a library and anything you didn't would receive (legitimate) push back.





  • is rust the only language to have procedural macros?
    2 projects | | 19 Feb 2022
    Have a look at byte buddy.
  • Byte Buddy on Android made possible
    5 projects | | 28 Mar 2021
    If you've ever used libraries like or (if you've ever done some backend development) and wondered how do they seem to add some code/logic into your app just by adding some annotation to some method, or if you ever wondered how mocking frameworks like Mockito can change a class behavior for example, then most likely you're interested in a programming technique that allows to modify existing code, usually known as Aspect oriented programming (also known in Java as Bytecode instrumentation) which, even though it might sound intimidating at first, some really cool tools such as Byte Buddy or AspectJ make it quite easy to accomplish.
  • A note from our sponsor - Scout APM | 9 Dec 2022
    Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀. Learn more →


Basic Byte Buddy repo stats
15 days ago
The context switching struggle is real
Zigi makes context switching a thing of the past. It monitors Jira and GitHub updates, pings you when PRs need approval and lets you take fast actions - all directly from Slack!