Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
4.0.4
-
None
-
Unknown
Description
The URL constructors were deprecated in Java 20 https://bugs.openjdk.org/browse/JDK-8294241.
The template uses the deprecated constructor: https://github.com/apache/cxf/blob/cxf-4.0.4/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/service.vm#L123
This becomes an issue when applications compile with warnings enabled, for example -Xlint:all -Werror
Seems we could just switch to using URI.create(...).toURL() in the template since that has been available since Java 1.4
Attachments
Issue Links
- links to