Jump to content

Byte Code Engineering Library: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Georgeryp (talk | contribs)
Updated main website, etc. since BCEL moved from Jakarta to Commons in July 2011: http://commons.apache.org/bcel/news.html
 
(27 intermediate revisions by 25 users not shown)
Line 1: Line 1:
{{unreferenced|date=January 2013}}
{{ Infobox Software
{{Infobox software
| name = Jakarta BCEL
| name = Apache Commons BCEL
| logo =
| logo =
| screenshot =
| screenshot =
| caption =
| caption =
| developer = [[Apache Software Foundation]]
| developer = [[Apache Software Foundation]]
| latest release version = 5.2
| latest release date = {{release date|2006|06|06}}
| latest release version = 6.8.1
| latest release date = {{Start date and age|2024|01|11}}
| latest preview version =
| latest preview version =
| latest preview date =
| latest preview date =
| operating system = [[Cross-platform]]
| operating system = [[Cross-platform]]
| programming language = [[Java (programming language)|Java]]
| programming language = [[Java (programming language)|Java]]
| genre = [[bytecode]] Engineering Library
| genre = [[Bytecode]] Engineering Library
| license = [[Apache License]] 2.0
| license = [[Apache License 2.0]]
| website = {{Official URL}}
| website = http://commons.apache.org/bcel/
}}
}}
The '''Byte Code Engineering Library''' (BCEL) is a project sponsored by the [[Apache Foundation]] previously under their [[Jakarta Project|Jakarta]] charter to provide a simple API for decomposing, modifying, and recomposing binary [[Java (programming language)|Java]] 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. BCEL is Java-centric at present, and does not currently have a backend that exposes other bytecode implementations (such as [[.NET Framework|.NET]] bytecode, [[Python (programming language)|Python]] bytecode, etc.).
The '''Byte Code Engineering Library''' ('''BCEL''') is a project sponsored by the [[Apache Foundation]] previously under their [[Jakarta Project|Jakarta]] charter to provide a simple API for decomposing, modifying, and recomposing binary [[Java (programming language)|Java]] 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 of [[Apache Commons]].


==Uses==
==Uses==
Line 28: Line 29:


==See also==
==See also==
{{Portal|Free software|Java}}
{{Portal|Free and open-source software|Computer programming}}
*[[ObjectWeb ASM]]
*[[ObjectWeb ASM]]
*[[Javassist]]
*Javassist


==External links==
==External links==
*{{official website}}
*[http://jakarta.apache.org/bcel/index.html Jakarta ByteCode Engineering Library] - The BCEL Project Home Page.
*[http://jakarta.apache.org/bcel/projects.html BCEL-Based Project Listing] - A listing of projects that make use of the BCEL Library.
**[https://commons.apache.org/proper/commons-bcel/projects.html BCEL-Based Project Listing] - A listing of projects that make use of the BCEL Library.
*[http://jakarta.apache.org/ Apache Jakarta Home] - The Apache Jakarta Home Page.
*[https://jakarta.apache.org/ Apache Jakarta Home] - The Apache Jakarta Home Page.
*[http://www.eclipse.org/aspectj/ AspectJ] - The AspectJ Project Home Page. (One of the high-visibility projects that makes use of BCEL.)
*[https://www.eclipse.org/aspectj/ AspectJ] - The AspectJ Project Home Page. (One of the high-visibility projects that makes use of BCEL.)
{{Apache Software Foundation}}
{{apache}}
[[Category:Virtualization software]]


[[Category:Virtualization software]]
[[fr:Apache BCEL]]
[[Category:Apache Commons|BCEL]]
[[hu:Byte Code Engineering Library]]
[[ru:Byte Code Engineering Library]]

Latest revision as of 19:40, 18 July 2024

Apache Commons BCEL
Developer(s)Apache Software Foundation
Stable release
6.8.1 / January 11, 2024; 8 months ago (2024-01-11)
Repository
Written inJava
Operating systemCross-platform
TypeBytecode Engineering Library
LicenseApache License 2.0
Websitecommons.apache.org/proper/commons-bcel/ Edit this at Wikidata

The Byte Code Engineering Library (BCEL) is a project sponsored by the Apache Foundation previously under their Jakarta charter to provide a simple API for decomposing, modifying, and recomposing binary Java 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 of Apache Commons.

Uses

[edit]

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:

  • Java Bytecode Decompiling, Obfuscation, and Refactoring
  • Performance and Profiling
Instrumentation calls that capture performance metrics can be injected into Java class binaries to examine memory/coverage data. (For example, injecting instrumentation at entry/exit points.)
  • Implementation of New Language Semantics
For example, Aspect-Oriented additions to the Java language have been implemented by using BCEL to decompose class structures for point-cut identification, and then again when reconstituting the class by injecting aspect-related code back into the binary. (See: AspectJ)
FindBugs uses BCEL to analyze Java bytecode for code idioms which indicate bugs.

See also

[edit]
[edit]