Is there any overview which version of kotlin supp...
# announcements
h
Is there any overview which version of kotlin supports which java version? I just know by trial and error that 1.4 now supports Java 14, but would love some overview if that exists?
n
pretty sure every version of Kotlin supports Java 14
m
There's 2 sides of 'support' though: 1. Does it run on JDK 14 2. Can it make use of the latest bytecode
While JDK 14 should be able to run anything compiled by the Kotlin compiler, it'll be interesting to know how optimized that is
n
for a long time Kotlin didn't really emit optimized bytecode for specific versions even if you told it to. I'm not even sure it does anything different post JVM 8 bytecode, but I'd love to hear otherwise.
s
Mostly JDK8 bytecode. Just recently they implemented invokedynamic support for string concat - https://github.com/JetBrains/kotlin/commit/04012951c112b40425267a7f8aa3bb1be52c1f40 By the way, Kotlin 1.4 supports all the JDK versions (including 16-ea, loom, panama etc)
m
Right, there's also: 3. will the Kotlin compiler itself run with JDK14 (which apparently it does 🙂 )
h
hmm so maybe it is something else then? Is it maybe the kotlin gradle plugin that restricts? Running 1.3.72 on Java14 gives the error, that the Java version is not supported 🤔
n
I guess I should say -- you should be able to run on Java 14...I don't know for sure that you can compile with it.
👍🏻 1