Stephan Schröder
10/31/2026, 10:36 PMMarat Akhin
11/02/2026, 1:59 PM-jvm-target 28
-Xjvm-enable-preview
-Xvalhalla-value-classes
-Xfull-value-classes
-Xfull-value-classes enables the language feature; -Xvalhalla-value-classes tells the JVM backend to emit Kotlin full value classes as Project Valhalla/JEP 401 value classes. Without it, Kotlin generates ordinary bytecode and value-class boxes remain identity classes. -Xjvm-enable-preview marks the class files as preview bytecode; at runtime you still need --enable-preview.
So with the SDKMAN JDK 28 EA you can play with it, e.g.:
kotlinc -jvm-target 28 \
-Xjvm-enable-preview \
-Xvalhalla-value-classes \
-Xfull-value-classes \
Main.kt -d out
java --enable-preview -cp out MainKt
Important: it is experimental/preview-only, not production-ready.