Bytecode Instrumentation

| 2004 JavaOne
SM
Conference | Session 3042 Copyright Hewlett Packard Co., 2004.
4
Bytecode instrumentation
Modification of the class file content
Based on early object code modification work
Applied to Java™ as bytecode manipulation
Support for optimization, generics, AOP, …
JVM™ hooks: -Xprep, preprocessor as a property
Special class loader hooks
Java Virtual Machine Tools Interface (JVMTI)
Includes callback mechanism for class loading
Enables bytecode instrumentation
JVMTI (JSR 163) in J2SE 5.0