From f0a1db100f89867c58856985ca2bded9ce8b5e00 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 6 Sep 2024 10:57:42 +1000 Subject: [PATCH] Jetty 12.0.x Add jdk23 build (fix javadoc breaking with 23) (#12238) * add jdk23 build * make jdk23 happy with javadoc --------- Signed-off-by: Olivier Lamy --- Jenkinsfile | 11 +++++++++++ .../main/java/org/eclipse/jetty/http/HttpFields.java | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index baba215004a..16c7c1a7a68 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -39,6 +39,17 @@ pipeline { } } + stage("Build / Test - JDK23") { + agent { node { label 'linux' } } + steps { + timeout( time: 180, unit: 'MINUTES' ) { + checkout scm + mavenBuild( "jdk23", "clean install -Dspotbugs.skip=true -Djacoco.skip=true", "maven3") + recordIssues id: "jdk23", name: "Static Analysis jdk23", aggregatingResults: true, enabledForFailure: true, tools: [mavenConsole(), java(), checkStyle(), javaDoc()] + } + } + } + stage("Build / Test - JDK17") { agent { node { label 'linux' } } steps { diff --git a/jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/HttpFields.java b/jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/HttpFields.java index 05bed910083..66db59325e3 100644 --- a/jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/HttpFields.java +++ b/jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/HttpFields.java @@ -699,7 +699,7 @@ public interface HttpFields extends Iterable, Supplier * @return the value of the field as a {@code long}, * or -1 if no such field is present * @throws NumberFormatException if the value of the field - * cannot be converted to a {@link long} + * cannot be converted to a {@code long} */ default long getLongField(String name) throws NumberFormatException { @@ -715,7 +715,7 @@ public interface HttpFields extends Iterable, Supplier * @return the value of the field as a {@code long}, * or -1 if no such field is present * @throws NumberFormatException if the value of the field - * cannot be converted to a {@link long} + * cannot be converted to a {@code long} */ default long getLongField(HttpHeader header) throws NumberFormatException {