[jbossws-issues] [JBoss JIRA] (JBWS-3552) @XmlJavaTypeAdapter ignored on exception classes
Mustafa Musaji (JIRA)
jira-events at lists.jboss.org
Thu Oct 11 07:31:03 EDT 2012
[ https://issues.jboss.org/browse/JBWS-3552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12725552#comment-12725552 ]
Mustafa Musaji commented on JBWS-3552:
--------------------------------------
[~richard_opalka] need confirmation of this use case. I think this may come down to how Exceptions are defined in WS but if you can explain why this is happening it would a huge help
{code:title=WebServiceClass.java|borderStyle=solid}
@WebMethod(operationName = "throwException")
public void throwException() throws WSInstructionCreationException {
//This exception extends AbstractWSException and it's field's annotated with @XMLJavaTypeAdapter are not picked up
}
@WebMethod(operationName = "throwAbstractException")
public void throwAbstractException() throws AbstractWSException {
//When thrown directly this exception class and the samefield's annotated with @XMLJavaTypeAdapter are picked up
}
{code}
You can replicate this if you take my example and simply add the throwAbstractException method above to the MyWebService class.
Thanks
> @XmlJavaTypeAdapter ignored on exception classes
> ------------------------------------------------
>
> Key: JBWS-3552
> URL: https://issues.jboss.org/browse/JBWS-3552
> Project: JBoss Web Services
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: jbossws-cxf
> Reporter: Richard Opalka
> Assignee: Richard Opalka
> Fix For: jbossws-cxf-4.1
>
> Attachments: JBWS-3552-reproducer-2.zip, JBWS-3552.zip
>
>
> Methods which have @XmlTypeAdapter in exception types are not published in the wsdl.
--
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
More information about the jbossws-issues
mailing list