A conference talk covering the Java Class File API (JEP 484), a new standard API in the JDK for parsing, generating, and transforming Java bytecode. The speaker explains bytecode basics, walks through practical examples including dumping strings from class files, adding logging via bytecode instrumentation, and implementing a memoization decorator similar to Python's @cache. Key topics include the API's immutable tree model, builder pattern with replay support, transformation convenience methods, the Java instrumentation agent mechanism for load-time bytecode rewriting, and how AI coding assistants (ChatGPT, Claude Code) struggle with this relatively new and uncommon API.
•50m watch time
Sort: