Update to Java 23#656
Merged
Merged
Conversation
VSCode keeps installing the node modules in the project root folder, and I am tired of looking through 7,000 node files asking to be tracked
TwoLettuce
approved these changes
Jun 24, 2026
TwoLettuce
left a comment
Contributor
There was a problem hiding this comment.
Looks like it probably works!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Resolves #645 kinda.
Originally I set out to upgrade the autograder to version 25, so that we could support the latest LTS of java possible. The current chess project is set up to run JDK 23, and the current version of the autograder is version 21. Recently, we have seen quite a few students using unamed variables, which was introduced in Java 22. They then push their code to the autograder and it fails to compile.
It turned out that Checkstyle did not support Java 25 language features. This meant that although the autograder could upgrade to Java 25 and run projects using features just fine, it could not run code quality with these features. Checkstyle did support unnamed variables, and claims to be supported by Java 23. Thus, this pull request updates the autograder to that version. This should allow students to use unnamed variables in their code, consistent with the JDK we give them to start the project.
The Dockerfile was updated to use version 25. This is because as far as I could see, it only has builds for LTS versions. Thus, the best version to use was 25.
Details
Testing
Future Work
Should checkstyle be upgraded to support Java 25, we could make the final leap and upgrade to fully to Java 25. A feature I used to test this was placing code before the super call in a constructor. We would first need to upgrade the Checkstyle repository and then update this one.