ObjectWeb ASM


The ASM library is a project of the OW2 Consortium. It provides a simple API for decomposing, modifying, and recomposing binary Java classes. The project was originally conceived and developed by Eric Bruneton. ASM is Java-centric at present, and does not currently have a backend that exposes other bytecode implementations.
The ASM name does not mean anything: it is just a reference to the asm keyword of C, which allows some functions to be implemented in assembly language.

Uses

ASM provides a simple library that exposes the internal aggregate components of a given Java class through its visitor oriented API. ASM also provides, on top of this visitor API, a tree API that represents classes as object constructs. Both APIs can be used for modifying the binary bytecode, as well as generating new bytecode The ASM library has been used in several diverse applications, such as:
Since version 3.2, ASM has added support for the new invokedynamic code, which allows method invocation relying on dynamic type checking on the latest JDK 7 binaries, thus easing support for dynamically typed languages.

Release history

This table presents only releases with significant steps in ObjectWeb ASM history, aside from versions that mainly fixed bugs and improved performance.
ReleaseRelease DateHighlights
2.02005-05-17Java 5 language support
3.22009-06-11support for the new invokedynamic code.
4.02011-10-29Java 7 language support
5.02014-03-16Java 8 language support
6.02017-09-23Codebase migrated to Gitlab
Java 9 language support
6.12018-03-11Java 10 language support
7.02018-10-27Java 11 language support
7.12019-03-03Java 13 language support
8.02020-03-28Java 14 language support