(For this reason, some Scala developers use a newer JDK for their daily work but do release builds on JDK 8.) Long Term Support (LTS) versionsĪfter Java 8, Oracle introduced the concept of LTS versions of the JDK. If you compile on JDK 11+ but want to allow your users to stay on 8, additional care is needed to avoid using APIs and features that don’t exist in 8. JDK 8 remains in use at some shops (as of early 2023), but usage is declining and some projects are dropping support. Since the JVM is normally backwards compatible, it is usually safe to use a newer JVM for running your code than the one it was compiled on, especially if you are not using JVM features designated “experimental” or “unsafe”. JDK 8, 11, 17, and 20 are all reasonable choices both for compiling and running Scala code. The linked page includes contact information for inquiring about supported and recommended versions. Lightbend offers commercial support for Scala 2. In general, Scala works on JDK 11+, including GraalVM, but may not take special advantage of features that were added after JDK 8. Using latest patch version is always recommendedĮven when a version combination isn’t listed as supported, most features may still work. Sometimes new JVM and JDK (Java Development Kit) versions require us to update Scala to remain compatible. (Other supported platforms: Scala.js, Scala Native.) Scala’s primary platform is the Java Virtual Machine (JVM). Info: JavaScript is currently disabled, code tabs will still work,
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |