This articledoes notcite anysources. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged andremoved. Find sources: "Byte Code Engineering Library" – news ·newspapers ·books ·scholar ·JSTOR(January 2013) (Learn how and when to remove this message) |
Apache Commons BCEL | |
---|---|
Developer(s) | Apache Software Foundation |
Stable release | 6.8.1 / January 11, 2024; 17 months ago (2024-01-11) |
Repository | |
Written in | Java |
Operating system | Cross-platform |
Type | Bytecode Engineering Library |
License | Apache License 2.0 |
Website | commons![]() |
TheByte Code Engineering Library (BCEL) is a project sponsored by theApache Foundation previously under theirJakarta charter to provide a simple API for decomposing, modifying, and recomposing binaryJava classes (I.e.bytecode). The project was conceived and developed by Markus Dahm prior to officially being donated to the Apache Jakarta foundation on 27 October 2001. It is a part ofApache Commons.
BCEL provides a simple library that exposes the internal aggregate components of a given Java class through its API as object constructs (as opposed to the disassembly of the lower-level opcodes). These objects also expose operations for modifying the binary bytecode, as well as generating new bytecode (via injection of new code into the existing code, or through generation of new classes altogether.) The BCEL library has been used in several diverse applications, such as: