You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _overviews/jdk-compatibility/overview.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Sometimes new JVM and JDK (Java Development Kit) versions require us to update S
22
22
23
23
Even when a version combination isn't listed as supported, most features may still work. (But Scala 2.12+ definitely doesn't work at all on JDK 6 or 7.)
24
24
25
-
In general, Scala works on JDK 11+, including GraalVM, but it probably won't take special advantage of features that were added after JDK 8. See [below](#jdk-11-compatibility-notes).
25
+
In general, Scala works on JDK 11+, including [GraalVM](https://www.graalvm.org/docs/reference-manual/scala/), but it probably won't take special advantage of features that were added after JDK 8. See [below](#jdk-11-compatibility-notes).
26
26
27
27
Lightbend offers [commercial support](https://www.lightbend.com/lightbend-platform-subscription) for Scala. The linked page includes contact information for inquiring about supported and recommended versions.
28
28
@@ -32,6 +32,8 @@ We generally recommend JDK 8 or 11 for *compiling* Scala code. Since the JVM ten
32
32
33
33
If you compile on JDK 11+ but have users on JDK 8, additional care is needed to avoid using APIs and features that don't exist in 8. Therefore, compiling on 8 may be the safer choice. Some Scala developers use JDK 11+ for their daily work but do release builds on JDK 8.
34
34
35
+
Additionally, you can also run your scala application on [GraalVM](https://www.graalvm.org/docs/reference-manual/scala/) which is a JVM. GraalVM performs well on the Scala benchmarks, and it benefits from GraalVM runtime and runs faster too.
36
+
35
37
## Long Term Support (LTS) versions
36
38
37
39
After Java 8, Oracle introduced the concept of LTS versions of the JDK. These versions will remain supported (by Oracle, and likely by the rest of the ecosystem, including Scala) for longer than the versions in between. See <https://www.oracle.com/technetwork/java/eol-135779.html>.
@@ -48,7 +50,7 @@ In almost every case, you're free to use the JDK and JVM of your choice.
48
50
49
51
JDK 8 users typically use the Oracle JDK or some flavor of OpenJDK.
50
52
51
-
Most JDK 11+ users are using either OpenJDK or GraalVM.
53
+
Most JDK 11+ users are using either OpenJDK or [GraalVM](https://www.graalvm.org/docs/reference-manual/scala/) which runs in the context of OpenJDK.
52
54
53
55
OpenJDK comes in various flavors, offered by different providers. We build and test Scala using [AdoptOpenJDK](https://adoptopenjdk.net) in particular, but the differences are unlikely to matter to most users.
0 commit comments