You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Benson Margulies (JIRA)" <ji...@apache.org> on 2008/10/07 22:28:44 UTC

[jira] Resolved: (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 ]

Benson Margulies resolved CXF-1840.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2
         Assignee: Willem Jiang  (was: Benson Margulies)

This should merge down to 2.1.x.

> 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
>            Assignee: Willem Jiang
>             Fix For: 2.2
>
>         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.