You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/08/24 09:07:00 UTC

[jira] [Commented] (CXF-7823) JAXBEncoderDecoder doesn't respect @XmlType's propOrder in Exception class

    [ https://issues.apache.org/jira/browse/CXF-7823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16591364#comment-16591364 ] 

ASF GitHub Bot commented on CXF-7823:
-------------------------------------

jimma opened a new pull request #437: [CXF-7823]:JAXBEncoderDecoder doesn't respect @XmlType's propOrder in…
URL: https://github.com/apache/cxf/pull/437
 
 
   … Exception class

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> JAXBEncoderDecoder doesn't respect @XmlType's propOrder in Exception class
> --------------------------------------------------------------------------
>
>                 Key: CXF-7823
>                 URL: https://issues.apache.org/jira/browse/CXF-7823
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>    Affects Versions: 3.2.6
>            Reporter: Jim Ma
>            Assignee: Jim Ma
>            Priority: Major
>             Fix For: 3.3.0, 3.2.7
>
>
> 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;
>     }
> }



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)