Skip to content

Commit 9d0b7c3

Browse files
committed
docs: note that Kotlin reference builds fail on JDK 22.0.0
1 parent 807346b commit 9d0b7c3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎docs/guides/toolchains.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ On Linux, your distribution's packages work too: on Debian and Ubuntu, `sudo apt
125125

126126
Several JDKs can be installed side by side. `cstudy` never looks for them: it uses the one your shell selects, so `sdk use java <identifier>` in one terminal, or a `.sdkmanrc` in a directory, switches it. Switching starts another Gradle daemon and compiles once more. Your Java and Kotlin code compiles at the level of the selected JDK, up to 26, so a newer JDK lets you use its language features and APIs. A problem that needs a newer JDK than 21 says so in its statement, and `cstudy` refuses to start it on an older one.
127127

128+
One known gap is JDK 22. With the JDK 22.0.0 build we test, the Kotlin compiler cannot read that JDK's API signatures when it compiles a problem's reference solution at JDK 21's level. So `cstudy bench` and `cstudy verify` fail for Kotlin problems, while your own Kotlin code and every Java command work. JDK 22 no longer receives updates, so select JDK 25 instead.
129+
128130
Nothing else is needed for Java or Kotlin:
129131

130132
- **Gradle**: each workspace ships the Gradle wrapper (`jvm/gradlew`), which downloads its own Gradle on first use. `cstudy doctor` reports a missing system Gradle as `WARN`; only a maintainer who regenerates the wrapper needs one (`brew install gradle`, or `sdk install gradle` on Linux, although the warning names Homebrew).

0 commit comments

Comments
 (0)