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

JAX-RS client should use Enum.value() instead of toString()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 3.0.4
    • NeedMoreInfo
    • JAX-RS
    • None
    • Unknown

    Description

      A JAX-RS endpoints that uses an JAXB enumeration as a parameter marshals it using toString() instead of its {{public String value()} method.
      This results in invalid values being marshaled for values, such as STATUS_UPDATE instead of status-update.
      This requires writing a custom enumeration ParamConverterProvider. Since all JAXB enumerations follow standard method patterns for marshaling public String value() and unmarshaling public static T fromValue(String value), they should be handled by CXF by default.

      Attachments

        Issue Links

          Activity

            People

              sergey_beryozkin Sergey Beryozkin
              dhirajsb Dhiraj Sureshkumar Bokde
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: