]
Alessio Soldano updated JBWS-4129:
----------------------------------
Assignee: Jim Ma
Can't deploy webservice on JDK11
--------------------------------
Key: JBWS-4129
URL:
https://issues.jboss.org/browse/JBWS-4129
Project: JBoss Web Services
Issue Type: Bug
Affects Versions: jbossws-cxf-5.2.1.Final
Reporter: Jan Blizňák
Assignee: Jim Ma
Fix For: jbossws-cxf-5.2.2.Final
When you try to deploy webservice (eg. by running the testsuite) on latest Wildfly
running on latest JDK11 available [
http://jdk.java.net/11/], an error is thrown on server
side during the process, ultimately caused by:
{code:java}
Caused by: java.lang.NumberFormatException: For input string: "11-ea"
at
java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.base/java.lang.Integer.parseInt(Integer.java:652)
at java.base/java.lang.Integer.valueOf(Integer.java:983)
at
org.apache.cxf@3.2.5//org.apache.cxf.helpers.JavaUtils.<clinit>(JavaUtils.java:57)
... 31 more{code}
{code:java}
[jbliznak@rh cxf]$ java -version
java version "11-ea" 2018-09-25
Java(TM) SE Runtime Environment 18.9 (build 11-ea+21)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11-ea+21, mixed mode)
{code}
The blame goes for naive check at
https://github.com/apache/cxf/blob/3.2.x-fixes/core/src/main/java/org/apa...
which do not count with "-ea" or any other suffix in version, in other words we
need fix on CXF side.
Inspiration including tests
https://github.com/google/gson/commit/a6890bbaba29fb1074388c06bf0c231f8e0...