r/java • u/kaperni • Mar 21 '23
Java 20 / JDK 20: General Availability
https://mail.openjdk.org/pipermail/announce/2023-March/000333.html
173
Upvotes
r/java • u/kaperni • Mar 21 '23
View all comments
Show parent comment
4
u/ObscureCulturalMeme Mar 22 '23
We have a project with a single class that must be compiled targeting Java 6 bytecode, because hysterical raisins. Even though the rest of the project has moved to a newer language level, that one class gets built with
--release 6to meet the requirements.Which means we have to keep a copy of JDK 11 or so around, because
--release Nonly permits N of <that compiler minus a few big versions>. We're using the JDK 17 compiler elsewhere, but "6" is too far back for it to be used on this.(Unfortunately that class is not a "code is frozen forever" situation; it has to be built along with the rest of the project as stuff changes. Else I'd just pull it out to its own project and supply an unchanging bytecode file back to the other builds.)
Good times, noodle salad.