Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-9011

WSDLTo JAXWS Frontend service.vm Velocity template uses deprecated URL constructor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.0.4
    • 4.1.0, 4.0.5
    • Soap Binding
    • 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

          Activity

            People

              Unassigned Unassigned
              fjmateo Francisco Mateo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: