[
https://issues.apache.org/jira/browse/CXF-9011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17844771#comment-17844771
]
Freeman Yue Fang commented on CXF-9011:
---------------------------------------
Hi [~fjmateo],
Thanks for reporting this! A patch is welcome to address it!
Freeman
> 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
>
> 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)