Hi Team,
There seems to be restful-ws TCK compilation error happening only in JDK17 with the current main branch as run in
https://ci.eclipse.org/rest/job/TCK_EFTL_build_and_stage/6/.
Apparently the TCK build passed with JDK17 on March 19
https://ci.eclipse.org/rest/job/TCK_EFTL_build_and_stage/3/.
The TCK build also passes with JDK21 with latest changes
https://ci.eclipse.org/rest/job/TCK_EFTL_build_and_stage/7/.
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
Does any know the solution for the second problem which occurs only in JDK17.
To reproduce :
-set JDK17 as java home,
-mvn clean install ;
-cd jaxrs-tck; mvn clean install
Thanks & Regards,
Alwin Joseph