@ow2 has quietly released ASM 9.8 here: https://asm.ow2.io/versions.html. This version of the #bytecode manipulation library now support the EA versions of #JDK25. Ok @ApacheGroovy and @rafaelcodes (aka Mr #ByteBuddy) ... you know what to do. #Java #JDK #OpenJDK #OpenSource
ASM - Versions

Java Bytecode Wizardry: Supercharge Your Apps Without Touching the Source Code

Java bytecode instrumentation allows modifying compiled Java classes without changing source code. It uses Java Agents and libraries like ASM or ByteBuddy to manipulate bytecode at runtime. This technique enables adding features like timing, logging, profiling, and security checks to applications dynamically. It's powerful but should be used carefully to avoid complexity and performance issues.

DEV Community
Now is the time that lower level #Java libraries and tools need to be preparing #JDK22 (byte)code compatibility. #OW2's ASM 9.6 is already there and so is #ByteBuddy. Even #ApacheGroovy 4.0 and 5 alpha look ready. As for build tools ... well ... #Java #OpenSource

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.

https://blog.frankel.ch/monkeypatching-java/

#Java #AspectJ #ByteBuddy #instrumentation #JavaAgent

Monkey-patching in Java

The JVM is an excellent platform for monkey-patching. Monkey patching is a technique used to dynamically update the behavior of a piece of code at run-time. A monkey patch (also spelled monkey-patch, MonkeyPatch) is a way to extend or modify the runtime code of dynamic languages (e.g. Smalltalk, JavaScript, Objective-C, Ruby, Perl, Python, Groovy, etc.) without altering the original source code. — Wikipedia I want to demo several approaches for monkey-patching in Java in this post

A Java geek

Von Buddies und Agenten – dynamische Codegenerierung in Java

Manchmal reichen die üblichen Möglichkeiten der Programmiersprache nicht aus und die exotischeren Ansätze müssen zum Einsatz kommen. Angefangen bei ClassLoader, Reflections, ServiceLoader, über AnnotationProcessor und JavaAgents

https://schegge.de/2023/08/von-buddies-und-agenten-dynamische-codegenerierung-in-java/

#Bibliotheken #Java #Annotation #AnnotationProcessor #ByteBuddy #Bytecode #Java #Reflections #ServiceLoader

</Agile> Von Buddies und Agenten – dynamische Codegenerierung in Java

Manchmal reichen die üblichen Möglichkeiten der Programmiersprache nicht aus und die exotischeren Ansätze müssen zum Einsatz kommen. Angefangen bei ClassLoader, Reflections, ServiceLoader, über Ann…

</Agile>
#jMolecules Integrations 0.13 (and jMolecules BOM 2022.2.2) is out! Improved #ByteBuddy code generation and quite a few dependency upgrades. https://github.com/xmolecules/jmolecules-integrations/releases/tag/0.13.0
Release 0.13 · xmolecules/jmolecules-integrations

⭐ New Features Axon code generation should work without Spring on the classpath #147 Only annotate aggregate identifiers with @EmbeddableId #142 🔨 Dependency Upgrades Upgrade to Hibernate 6.1.5 ...

GitHub