~/talk

Java, Code Coverage & Their Best Friend: Bytecode

Talkat YOW! Perth 2023 · 2023-09-11..09-12· [java, testing]
slides:none on file

JaCoCo inspects class files and implements bytecode pattern filters so coverage matches what was written in source, not the compiler noise: it ignores synthetic bridge and lambda methods (including different JVM naming schemes), collapses compiler-generated enum/value and switch-by-string hash branches, removes duplicated finally and try-with-resources artifacts, and honors Nest-based access from Java 11. The project tests across 17.5 JDKs, finds JDK bugs, and after filters the same test suite can jump from partial to 100% coverage (JaCoCo 0.8.2 and later).

AI-written summary · about

  1. 0:00Intro
  2. 0:49Java Code Coverage
  3. 4:35Java
  4. 18:36JaCoCo should ignore synthetic methods
  5. 38:15Demo
  6. 43:42Conclusion
  7. 45:55Outro
~/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.