Skip to content

Commit e22538f

Browse files
committed
Update for JDK23
1 parent fd1f6be commit e22538f

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

deploy/tasks/pre-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ spec:
4848
- name: BUILD_TOOL_VERSION
4949
description: The build tool version to use (e.g. 3.9.5)
5050
- name: JAVA_VERSION
51-
description: Java version to use (7, 8, 9, 11, 17, 21, 22)
51+
description: Java version to use (7, 8, 9, 11, 17, 21, 22, 23)
5252
- name: BUILD_PLUGINS
5353
description: Optional comma separated list of build plugins that should be disabled.
5454
default: ""

java-components/build-request-processor/src/main/java/com/redhat/hacbs/container/build/preprocessor/AbstractPreprocessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ private String getMavenSetup() {
321321
if [ "%s" = "7" ]; then
322322
JAVA_VERSIONS="7:1.7.0 8:1.8.0 11:11"
323323
else
324-
JAVA_VERSIONS="8:1.8.0 9:11 11:11 17:17 21:21 22:22"
324+
JAVA_VERSIONS="8:1.8.0 9:11 11:11 17:17 21:21 22:23 23:23"
325325
fi
326326
327327
for i in $JAVA_VERSIONS; do

java-components/build-request-processor/src/main/java/com/redhat/hacbs/container/verifier/asm/ClassVersion.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import static org.objectweb.asm.Opcodes.V20;
2222
import static org.objectweb.asm.Opcodes.V21;
2323
import static org.objectweb.asm.Opcodes.V22;
24+
import static org.objectweb.asm.Opcodes.V23;
2425
import static org.objectweb.asm.Opcodes.V9;
2526

2627
import com.redhat.hacbs.container.analyser.build.JavaVersion;
@@ -55,6 +56,7 @@ public static JavaVersion toJavaVersion(int classVersion) {
5556
case V20 -> "20";
5657
case V21 -> "21";
5758
case V22 -> "22";
59+
case V23 -> "23";
5860
default -> throw new IllegalArgumentException("Unknown class version: " + classVersion);
5961
};
6062
return new JavaVersion(version);

0 commit comments

Comments
 (0)