WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 385f854

Browse files
committed
Specify Java 21 instead of 17
Signed-off-by: Andrew Helwer <[email protected]>
1 parent fd3acea commit 385f854

File tree

12 files changed

+14
-12
lines changed

12 files changed

+14
-12
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
uses: actions/checkout@v4
1919
with:
2020
submodules: true
21-
- name: Install JDK 17
21+
- name: Install JDK 21
2222
uses: actions/setup-java@v4
2323
with:
2424
distribution: adopt
25-
java-version: 17
25+
java-version: 21
2626
- name: Install SBT
2727
uses: sbt/setup-sbt@v1
2828
- name: Validate 2-scanning

1-start/wikipage.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ There are two good reasons for this:
3939
- The high-quality free online textbook //[[https://craftinginterpreters.com/contents.html|Crafting Interpreters]]// by Robert Nystrom uses Java, and this tutorial is a simple TLA⁺-themed wrapper around its concepts. That book states its own reasons for using Java, which you can read.
4040

4141
You will need to install the [[https://adoptium.net/|Java Development Kit]] appropriate for your system.
42-
This tutorial uses the Java 17 [[https://openjdk.org/jeps/395|records]] feature for terse definition of dataclasses, so you must install JDK 17 or higher.
42+
This tutorial requires Java 21 or higher, for the Java 17 [[https://openjdk.org/jeps/395|records]] feature and the Java 21 [[https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/SequencedCollection.html#reversed()|''reversed()'']] method.
4343
While all code artifacts can be produced entirely by reading this tutorial, if you get out of sync you can find working implementations in [[https://github.com/tlaplus/devkit|this git repository]].
4444

4545
The tutorial has you construct the TLA⁺ tools from the bottom up.

10-closures/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ You can see the expected state of the source code after the tutorial in the [src
55
Unit tests (not covered in the tutorial) are in the [test](test) directory.
66

77
## Dependencies
8-
- [OpenJDK 17+](https://adoptium.net/)
8+
- [OpenJDK 21+](https://adoptium.net/)
99
- [sbt (simple build tool)](https://www.scala-sbt.org/)
1010

1111
## Build, test, run

2-scanning/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ You can see the expected state of the source code after the tutorial in the [src
55
Unit tests (not covered in the tutorial) are in the [test](test) directory.
66

77
## Dependencies
8-
- [OpenJDK 17+](https://adoptium.net/)
8+
- [OpenJDK 21+](https://adoptium.net/)
99
- [sbt (simple build tool)](https://www.scala-sbt.org/)
1010

1111
## Build, test, run

3-expressions/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ You can see the expected state of the source code after the tutorial in the [src
55
Unit tests (not covered in the tutorial) are in the [test](test) directory.
66

77
## Dependencies
8-
- [OpenJDK 17+](https://adoptium.net/)
8+
- [OpenJDK 21+](https://adoptium.net/)
99
- [sbt (simple build tool)](https://www.scala-sbt.org/)
1010

1111
## Build, test, run

4-evaluation/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ You can see the expected state of the source code after the tutorial in the [src
55
Unit tests (not covered in the tutorial) are in the [test](test) directory.
66

77
## Dependencies
8-
- [OpenJDK 17+](https://adoptium.net/)
8+
- [OpenJDK 21+](https://adoptium.net/)
99
- [sbt (simple build tool)](https://www.scala-sbt.org/)
1010

1111
## Build, test, run

5-statements/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ You can see the expected state of the source code after the tutorial in the [src
55
Unit tests (not covered in the tutorial) are in the [test](test) directory.
66

77
## Dependencies
8-
- [OpenJDK 17+](https://adoptium.net/)
8+
- [OpenJDK 21+](https://adoptium.net/)
99
- [sbt (simple build tool)](https://www.scala-sbt.org/)
1010

1111
## Build, test, run

6-jlists/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ You can see the expected state of the source code after the tutorial in the [src
55
Unit tests (not covered in the tutorial) are in the [test](test) directory.
66

77
## Dependencies
8-
- [OpenJDK 17+](https://adoptium.net/)
8+
- [OpenJDK 21+](https://adoptium.net/)
99
- [sbt (simple build tool)](https://www.scala-sbt.org/)
1010

1111
## Build, test, run

7-operators/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ You can see the expected state of the source code after the tutorial in the [src
55
Unit tests (not covered in the tutorial) are in the [test](test) directory.
66

77
## Dependencies
8-
- [OpenJDK 17+](https://adoptium.net/)
8+
- [OpenJDK 21+](https://adoptium.net/)
99
- [sbt (simple build tool)](https://www.scala-sbt.org/)
1010

1111
## Build, test, run

8-actions/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ You can see the expected state of the source code after the tutorial in the [src
55
Unit tests (not covered in the tutorial) are in the [test](test) directory.
66

77
## Dependencies
8-
- [OpenJDK 17+](https://adoptium.net/)
8+
- [OpenJDK 21+](https://adoptium.net/)
99
- [sbt (simple build tool)](https://www.scala-sbt.org/)
1010

1111
## Build, test, run

0 commit comments

Comments
 (0)