Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[rest-dev] TCK compilation error in JDK17
  • From: Alwin Joseph <alwin.joseph@xxxxxxxxxx>
  • Date: Fri, 29 Mar 2024 15:15:04 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ymDqISbh97yZmIaWS5Ycw+6DIxsJ0tm6W6LK0HcIfuE=; b=cHaObQ1eCEz6t06sXP6EDE5GTVz9T29iGqTIZen4IJ+H7GfBaVowvl4hlwDhUSSeeCwz5Kv84eupHJj+pqS6eLCdF4HH3TaWzjaEfsnkmTNhivtP90GdEuJTnw2iqFr+fSF6ijoHS2hED0N81FHnmMaxdioXpmFgsYrdbKWxM0j5w1vrpfYUU5IHUT5Hjg0+0xbuJ+JaSjPeAPG6sIZrefdADkju1+/M8L9Y4yLmR1Z8h6VX1pjUzKhCsNyUaCB1qO3Evvr+qOSeHP0wO6HXQOgdn0VWHtElmTkaW3BuAfDigJTYiyyNUCOK5AcsSe6MiZ8405zK50VoZyMP7cLogA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E0lYwwiUD5Ds/SEYkquKdogX3UAms3G7JbETgqwp3vBZYz0EvzmtX7S1YdgCXTab+vIhZzSnkUe8gI4ZZH85Sb14kXGYMkdz14nf0Shfc86sj/7/QnY7otoKWBWfIvEcxjlsUlNbntp89xb4D9YaKS+sulS5MWj3aphhUbznC4DeFbJAnTpSuFs0UVRAuavUACTw1oLkAPTFVmXF1HfIPbUBKp9fwVmP4EDU7iK2C0okI0YX2zbtJNOg0ZuemLwwTNRjskkAhKFFzdGyrLYuhYs+OMntJmvPjH04QH6Xvs7xrljsiHtKyOBM9izPjapev1hI+MMPFESjCrnO8MRsUQ==
  • Delivered-to: rest-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/rest-dev/>
  • List-help: <mailto:rest-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/rest-dev>, <mailto:rest-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/rest-dev>, <mailto:rest-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHagemxM6deF9j+ZUCPdiiKZIMBJA==
  • Thread-topic: TCK compilation error in JDK17

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:

 

  1. 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.

 

 

  1. 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

 


Back to the top