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

JAXBEncoderDecoder doesn't respect @XmlType's propOrder in Exception class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.16, 3.2.6
    • 3.1.17, 3.2.7, 3.3.0
    • JAXB Databinding
    • None
    • Unknown

    Description

      Property order is ignored when marshal this exception class by JAXBEncoderDecoder:

      @XmlRootElement(name = "fault")
      @XmlType(name = "", propOrder =

      { "message", "data"}

      , namespace = "")
      public class PropertyOrderException extends Exception implements java.io.Serializable {
      private static final long serialVersionUID = 1L;
      @XmlElement(name = "message", required = true, nillable = true)
      public String message;
      @XmlElement(name = "data", required = true, nillable = true)
      public ErrorData data;
      public PropertyOrderException()

      { this.data = new ErrorData(); this.message = null; }

      public PropertyOrderException(ErrorData data)

      { this.data = data; this.message = null; }

      public PropertyOrderException(String message)

      { this.data = null; this.message = message; }

      @Override
      @XmlTransient
      public String getMessage()

      { return this.message; }

      }

      Attachments

        Activity

          People

            ema Jim Ma
            ema Jim Ma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: