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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.7.3
    • 2.7.4, 2.6.7, 3.0.0-milestone1
    • Tooling
    • None
    • JDK 1.7.0_17

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: