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.

Reply via email to