~/talk

Bytecode Pattern Matching

slides:none on file

Hands-on exploration of how javac, ECJ and kotlinc transform simple source into surprising bytecode, with JaCoCo/EclEmma used to measure and then filter out compiler-generated artifacts. Concrete examples: enums produce a synthetic values array and a generated constructor/accessor bridge methods; string switches become a two-stage hashcode-and-equals sequence that can turn 3 source branches into 9 bytecode branches; try/finally and try-with-resources duplicate calls; Java 11 nestmates remove some synthetic shims. Filters are implemented in JaCoCo and improve coverage reports.

AI-written summary · about

  1. 0:00Start
  2. 0:57Java Code Coverage
  3. 4:02Disclaimer
  4. 5:39Constant Pool
  5. 6:06Default Constructor
  6. 10:07Java Virtual Machine Specification
  7. 12:05Constructor Invocation
  8. 13:11Accessible Constructor
  9. 14:24Accessor Methods
  10. 15:41Bridge Methods
  11. 33:34Default Arguments and Kotlin
  12. 37:49Conclusion
~/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.