Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the concept of Dynamic Constants in Java and their impact on JVM features in this 56-minute conference talk from GOTO Copenhagen 2023. Delve into the power of this Java 11 addition as Evgeny Mandrikov, Software Gardener and Language Team Technical Leader at SonarSource, guides you through its implementation and potential pitfalls. Learn about JVM crashes in OpenJ9 and OpenJDK 11-14, and discover how to investigate and report such issues using JaCoCo. Gain insights into invokedynamic, class-file constants, non-capturing lambdas, enum constants and switches, singleton factories, and lazy static final fields. Walk through live demonstrations and code examples to deepen your understanding of these advanced Java concepts and their practical applications in software development.
Syllabus
Intro
JaCoCo Java Code Coverage
Real disclaimer
invokedynamic aka INDY
Java 11: Dynamic class-file constants
Original class
Instrumented class
Demo
Non-capturing lambdas
Enum constants
Enum switch
Good singleton factory
Lazy static final fields
There is more
Takeaways
Outro
Taught by
GOTO Conferences