You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andriy Redko (Jira)" <ji...@apache.org> on 2024/05/09 12:12:00 UTC
[jira] [Resolved] (CXF-9011) WSDLTo JAXWS Frontend service.vm Velocity template uses deprecated URL constructor
[ https://issues.apache.org/jira/browse/CXF-9011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andriy Redko resolved CXF-9011.
-------------------------------
Resolution: Fixed
> WSDLTo JAXWS Frontend service.vm Velocity template uses deprecated URL constructor
> ----------------------------------------------------------------------------------
>
> Key: CXF-9011
> URL: https://issues.apache.org/jira/browse/CXF-9011
> Project: CXF
> Issue Type: Bug
> Components: Soap Binding
> Affects Versions: 4.0.4
> Reporter: Francisco Mateo
> Priority: Minor
> Fix For: 4.1.0, 4.0.5
>
>
> 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
--
This message was sent by Atlassian Jira
(v8.20.10#820010)