Unverified Commit 125f6b00 authored by Prathamesh Zarkar's avatar Prathamesh Zarkar Committed by GitHub

latest jdk 23 is introduced accordingly changed the source code (#1152)

* latest jdk 23 is introduced accordingly changed the source code

* java version bumped
parent 88253ef4
{ {
"id": "java", "id": "java",
"version": "1.6.1", "version": "1.6.2",
"name": "Java (via SDKMAN!)", "name": "Java (via SDKMAN!)",
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/java", "documentationURL": "https://github.com/devcontainers/features/tree/main/src/java",
"description": "Installs Java, SDKMAN! (if not installed), and needed dependencies.", "description": "Installs Java, SDKMAN! (if not installed), and needed dependencies.",
......
...@@ -214,7 +214,7 @@ find_version_list() { ...@@ -214,7 +214,7 @@ find_version_list() {
fi fi
if [ "${JDK_DISTRO}" = "ms" ]; then 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" JDK_DISTRO="tem"
fi fi
fi fi
......
...@@ -9,7 +9,7 @@ echo 'public class HelloWorld { public static void main(String[] args) { System. ...@@ -9,7 +9,7 @@ echo 'public class HelloWorld { public static void main(String[] args) { System.
javac HelloWorld.java javac HelloWorld.java
check "hello world" /bin/bash -c "java HelloWorld | grep "Hello, World!"" 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 # Report result
reportResults reportResults
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment