I believe - but am struggling to confirm - that th...
# compiler
s
I believe - but am struggling to confirm - that the minimum JDK version to run the Kotlin 2.2 compiler remains JDK8? I found one vague reference suggesting it had been changed to JDK17 but otherwise mostly see JDK8. Can someone confirm?
w
It's Gradle 9 that requires JDK 17, the kotlin compiler stays on 8.
Out of curiosity, would requiring newer JDK for the compiler be a problem to you?
s
no, in fact would approve, was looking at random number generator improvements in Java 17 and thought it'd be nice to migrate compiler to it .....
w
Yep, there are also other newer APIs it would be nice, or in future necessary, for compiler to migrate to
s
I volunteer to help - RNGs and other APIs - once compiler moves up the JDK chain to something more recent/supported .... thanks
w
Cool. Though we are not yet sure about rising the JDK because there may be people who still need 8. I guess we'll also see how it goes with the bump in Gradle 9. And the major old APIs that cause problems is JNI and Unsafe. But the full replacements for them are only in JDK 22. Maybe 21, depending on how you count. And that may be too new to someone.
s
My (meaningless) opinion is JDK 17 as that's the oldest LTS not requiring extended support (https://www.oracle.com/java/technologies/java-se-support-roadmap.html) though Azul may provide JDK 11 non-extended support .... non-LTS versions don't make sense to me, so believe jump would be either 11 or 17
w
Likely so. But as mentioned that still does not solve the main problems with old APIs. But it would be something.
s
Agreed ....
🤝 1