db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Van Couvering <David.Vancouver...@Sun.COM>
Subject Bytecode manipulation
Date Fri, 19 Aug 2005 00:25:32 GMT
This looked interesting and useful for us (from O'Reilly's OnJava.com 

Bytecode manipulation may seem esoteric, even dangerous, but it is the
technology that underlies many popular Java-related technologies, such as
Groovy, BeanShell, and AspectWerkz.  And, as you might imagine, anything
that changes the internals of the Java class file format is going to
create new work for anyone who works at the bytecode level.  So, imagine
the changes caused by J2SE 5.0's major new features like generics and
annotations.  Without a solid framework to take care of the details for
you, you're just asking for trouble.

"The ASM bytecode manipulation framework is written in Java and uses a
visitor-based approach to generate bytecode and drive transformations of
existing classes. It allows developers to avoid dealing directly with a
class constant pool and offsets within method bytecode, thus hiding
bytecode complexity from the developer and providing better performance." 
In "Introduction to the ASM 2.0 Bytecode Framework," Eugene Kuleshov shows
what's new in the 2.0 version of ASM, looks at its support for J2SE 5.0
features like annotations and generics, and shows a sample application to
analyze the class dependencies of any JAR file.


View raw message