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:44 UTC

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

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.


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

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Peter Jones (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benson Margulies reassigned CXF-1840:
-------------------------------------

    Assignee: Benson Margulies

> 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: Benson Margulies
>         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.