Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
3.0.4
-
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.