Skip to content

Commit

Permalink
latest jdk 23 is introduced accordingly changed the source code (devc…
Browse files Browse the repository at this point in the history
…ontainers#1152)

* latest jdk 23 is introduced accordingly changed the source code

* java version bumped
  • Loading branch information
prathameshzarkar9 authored Oct 17, 2024
1 parent 88253ef commit 125f6b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/java/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "java",
"version": "1.6.1",
"version": "1.6.2",
"name": "Java (via SDKMAN!)",
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/java",
"description": "Installs Java, SDKMAN! (if not installed), and needed dependencies.",
Expand Down
2 changes: 1 addition & 1 deletion src/java/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ find_version_list() {
fi

if [ "${JDK_DISTRO}" = "ms" ]; then
if [ "${major_version}" = "8" ] || [ "${major_version}" = "18" ] || [ "${major_version}" = "22" ]; then
if [ "${major_version}" = "8" ] || [ "${major_version}" = "18" ] || [ "${major_version}" = "22" ] || [ "${major_version}" = "23" ]; then
JDK_DISTRO="tem"
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion test/java/install_latest_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ echo 'public class HelloWorld { public static void main(String[] args) { System.
javac HelloWorld.java

check "hello world" /bin/bash -c "java HelloWorld | grep "Hello, World!""
check "java version latest installed" grep "22.0.2" <(java --version)
check "java version latest installed" grep "23" <(java --version)

# Report result
reportResults

0 comments on commit 125f6b0

Please sign in to comment.