~/talk

Living in the Matrix with Bytecode Manipulation

Talkat SpringOne2GX 2014 · 2014-09-08..09-11· [compilers-and-language-design, java]
links:none on file
slides:none on file

Demonstrates adding audit logging by registering a Java agent that transforms class bytes at premain, finds methods annotated with an @ImportantLog, injects code and prints the expected audit lines — the demo works and shows logs at runtime. Compares Javassist (write Java strings, easier but slower) with ASM (event-based, smaller footprint, faster but requires writing JVM opcodes). Notes Hibernate uses bytecode enhancement and surprisingly only nine instances of “throw new LazyInitializationException” in its source.

AI-written summary · about

  1. 0:00Introduction to bytecode
  2. 1:13What is bytecode manipulation
  3. 4:01Applications of bytecode manipulation
  4. 6:34Java agents explained
  5. 8:22Java Assist framework overview
  6. 12:17Audit logging with Java Assist
  7. 15:50Java Assist pros and cons
  8. 16:12ASM framework overview
  9. 18:38Audit logging with ASM
  10. 25:03ASM pros and cons
  11. 26:05Hibernate lazy loading exception
  12. 30:24Hibernate enhancement task
  13. 33:57Spring and ASM usage
  14. 38:32Lessons learned from bytecode
  15. 41:23More applications of bytecode
  16. 42:13Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.