You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Peter Jones (JIRA)" <ji...@apache.org> on 2008/10/06 05:25:45 UTC

[jira] Updated: (CXF-1840) aegis databinding does not respect type in javax.xml.bind.annotation.XmlElement annotation

     [ https://issues.apache.org/jira/browse/CXF-1840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Jones updated CXF-1840:
-----------------------------

    Attachment: rt.databinding.aegis.patch.txt

Patch to fix issue

> aegis databinding does not respect type in javax.xml.bind.annotation.XmlElement annotation
> ------------------------------------------------------------------------------------------
>
>                 Key: CXF-1840
>                 URL: https://issues.apache.org/jira/browse/CXF-1840
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>            Reporter: Peter Jones
>         Attachments: rt.databinding.aegis.patch.txt
>
>
> The JaxbTypeTest.testType() test checks that elementProperty has a type of StringType, however the JaxbBean1 class getElementProperty() method has the following annotation:
>     @XmlElement(type = CustomStringType.class)
>     public String getElementProperty() {
> So, it seems it should test that the type is a CustomStringType.  I'm attaching a patch which fixes the test to test for the custom type, and adds a modification to AnnotationReader so that the type from the javax.xml.bind.annoation.XmlElement annotation is read correctly (so that the modified test will pass).
> Let me know if you think this is the appropriate fix!
> Cheers,
> Peter

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.