Need JDK17 higher than JDK17.0.2 version as latest in Jenkins ci.eclipse.org/rest
Summary
The restful-ws TCK is currently built with JDK17 using the Jenkins Job https://ci.eclipse.org/rest/job/TCK_EFTL_build_and_stage/. We used openjdk-jdk17-latest as the java version to run this job which is JDK 17.0.2. Apparently there is a bug in 17.0.2 (https://bugs.openjdk.org/browse/JDK-8262095) causing the build to fail with compilation errors.
Locally the compilation errors go off when JDK 17.0.10 was used. We would like to use openjdk-jdk17.0.9 or openjdk-jdk17.0.10 as latest JDK 17 in Jenkins instance ci.eclipse.org/rest to pass the TCK build job.
Steps to reproduce
- set java 17.0.2 as JDK, maven 3.8.5+
- git clone https://github.com/jakartaee/rest
- cd rest; mvn clean install
What is the current bug behavior?
The 2 types of issues are as below:
- non-varargs call of varargs method with inexact argument type for last parameter; [ERROR] cast to java.lang.Object for a varargs call [ERROR] cast to java.lang.Object[] for a non-varargs call and to suppress this warning.
This can be resolved by an Object cast as JaxrsUtil.iterableToString(";", (Object) headers)) in below files:
- jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/beanparam/BeanParamCommonClient.java
- jaxrs-tck/src/main/java/ee/jakarta/tck/ws/rs/ee/rs/cookieparam/JAXRSClientIT.java.
- Errors like below which also appeared as warnings first.
APPLICATION_SVG_XML in jakarta.ws.rs.core.MediaType has been deprecated and marked for removal APPLICATION_SVG_XML_TYPE in jakarta.ws.rs.core.MediaType has been deprecated and marked for removal Integer(int) in java.lang.Integer has been deprecated and marked for removal
after an error message : java.lang.NullPointerException: Cannot invoke "com.sun.tools.javac.code.Type.getThrownTypes()" because "tree.meth.type" is null
What is the expected correct behavior?
mvn clean install should pass without compilation errors.
Relevant logs and/or screenshots
Logs of job run https://ci.eclipse.org/rest/job/TCK_EFTL_build_and_stage/6/.
Priority
-
Urgent -
High -
Medium -
Low
Severity
-
Blocker -
Major -
Normal -
Low
Impact
We need to release the restful-ws standalone TCK very soon.