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

wadl2java: NPE in SourceGenerator when generating method with "plain" style parameter

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.3
    • Fix Version/s: 2.7.4, 2.6.7, 3.0.0-milestone1
    • Component/s: Tooling
    • Labels:
      None
    • Environment:

      JDK 1.7.0_17

    • Estimated Complexity:
      Moderate

      Description

      When trying to generate client classes with wadl2java command line tool, i encounter a NPE in org.apache.cxf.tools.wadlto.jaxrs.SourceGenerator.writeAnnotation(SourceGenerator.java:608)
      The "cls" parameter is null, what is not checked for.
      This is due to PARAM_ANNOTATIONS not containing the "plain" style, which is valid according to w3c wadl description (2.12.2).

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              knob-creek Thomas Greve
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: