cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Jones (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CXF-1840) aegis databinding does not respect type in javax.xml.bind.annotation.XmlElement annotation
Date Mon, 06 Oct 2008 03:25:45 GMT

     [ 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.


Mime
View raw message