Tall Legacy App with 10 Pumps Kotlin
summary
Concrete recipes for Kotlin Java interop with examples and pitfalls using real bytecode and generated methods The talk shows how annotating top level files with @JvmName and @JvmMultifileClass consolidates helpers into a single utils class so Java callers keep existing names It demonstrates data class access via @JvmField and consts to avoid getters, object singletons exposed as statics with @JvmStatic, and how @JvmOverloads creates N overloads for default parameters (no skipping middle args) plus using @Throws to produce checked exceptions Java can compile against
AI-written summary · about
chapters (7)
- 0:00Introduction to Kotlin Java interop
- 1:59Calling Kotlin from Java
- 4:26Data classes and JVM field
- 8:00Singletons and JVM static
- 9:52Default arguments and JVM overloads
- 13:01Checked exceptions in Kotlin
- 14:26Summary of JVM annotations
related talks
42mIdiomatic Interop with Kotlin
36mKotlin, Beyond the Basics
43mIdiomatic Interop
47mKotlin’s Mind Blowers²
46mThe Road to Kotlintown
39mTeach Kotlin to play well with Java - Optimization tips for Interoperability
16mThe Journey From Legacy Code to Idiomatic Kotlin
43mfun() Talk: Exploring Kotlin Functions
