Java 4..11, Kotlin, Code Coverage and Their Best Friend — Bytecode
summary
Examines Java and Kotlin bytecode differences across Java versions (from 1.4 to Java 11) and shows how these affect tools that work at the bytecode level. Uses JaCoCo (a Java code-coverage analyzer) as a concrete example to demonstrate compiler-generated helper constructs and how JaCoCo detects and filters them to produce accurate coverage results.
AI-written summary · about
chapters (12)
- 0:00Bytecode introduction
- 3:58Java compiler internals
- 11:45Synthetic methods
- 20:40Lambda expressions
- 26:06Assertions in bytecode
- 31:40Switch statement tricks
- 36:07Try-with-resources decompiled
- 42:31Kotlin data classes
- 45:20Kotlin default params
- 48:11IntelliJ coverage nuances
- 51:47Kotlin inline functions
- 53:34Key takeaways
