cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "iris ding (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-4748) getMessage from java.lang.Throwable is excluded from accepted method
Date Fri, 18 Jan 2013 06:32:12 GMT

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

iris ding commented on CXF-4748:
--------------------------------

Hi,

Can you please help to review the patch? thanks!

Iris Ding
                
> getMessage from java.lang.Throwable is excluded from accepted method
> --------------------------------------------------------------------
>
>                 Key: CXF-4748
>                 URL: https://issues.apache.org/jira/browse/CXF-4748
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAXB Databinding
>            Reporter: iris ding
>         Attachments: cxf-4748.patch
>
>
> According to jax-ws spec:
> For each getter in the exception and its superclasses, a property of the same type and
name is added to
> the bean. All the getter methods except getMessage from java.lang.Throwable type hierarchy
> are excluded from the list of getters to be mapped.
> But currently, message does not show up in generated wsdl in CXF:
> public class AddNumbersException extends Exception {
>     private static final long serialVersionUID = 4629689348515005826L;
>    String detail;
>     public AddNumbersException(String message, String detail) {
>         super(message);
>         this.detail = detail;
>     }
>    public String getDetail() {
>        return detail;
>    }
> }
> <xs:complexType name="AddNumbersException">
> <xs:sequence>
> <xs:element name="detail" nillable="true" type="xs:string"/>
> </xs:sequence>
> </xs:complexType>
> The corrected version should be:
> <xs:complexType name="AddNumbersException">
> <xs:sequence>
> <xs:element name="detail" nillable="true" type="xs:string"/>
> <xs:element name="message" nillable="true" type="xs:string"/>
> </xs:sequence>
> </xs:complexType>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message