Behind the mirror, Kotlin Reflection
summary
Shows concrete handles not just theory: how Kotlin exposes KClass / KType / KFunction / KProperty at runtime, how suspend methods require passing a Continuation, and how the kotlin Metadata annotation is decoded via JVM name resolver and protobuf to reconstruct functions and properties. Demonstrates property delegates (by lazy, saveableMutableState) reading the property context, when Java reflection is still needed for private fields, and that reflection has measurable overhead but is often acceptable for delegation and testing.
AI-written summary · about
chapters (4)
- 0:00Introduction and backstory
- 1:36Understanding Kotlin reflection
- 26:06Metadata and bytecode
- 28:29Annotation introspection








