cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CXF-2739) NPE When Mapping two xsd:dates in same object with Aegis Databinding
Date Tue, 30 Mar 2010 21:18:27 GMT

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

Daniel Kulp resolved CXF-2739.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.8

> NPE When Mapping two xsd:dates in same object with Aegis Databinding
> --------------------------------------------------------------------
>
>                 Key: CXF-2739
>                 URL: https://issues.apache.org/jira/browse/CXF-2739
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.1.5, 2.2.1, 2.2.2, 2.1.6, 2.2.3, 2.1.7, 2.2.4, 2.1.8, 2.2.5, 2.1.9,
2.2.6, 2.2.7
>            Reporter: Bryan Stopp
>            Assignee: Daniel Kulp
>             Fix For: 2.2.8
>
>         Attachments: cxf-binding-bug.zip, XMLBeanTypeInfo.java.patch
>
>
> When you use an Aegis mapping file to map multiple properties of an object to an xsd:date
using the DateType class, an NPE occurs. This actually occurs due to the .equals() method
of the Type class. The equals() is checking the schema and the typeClass attributes, however
due to the manner in which XmlBeanTypeInfo is generating the Type, it never sets the typeClass
attribute, and therefore an NPE occurs.
> I erroneously identified this a the fix for CXF-2728, however it turns out this isn't
the case. I applied the patch to v2.1.5 locally and tested it, and it still occured. This
tag is where type attribute of the ageis mapping file is actually being used for the first
time.
> I have attached a JUnit test case  (Eclipse/Maven project) as well as a patch. I made
an assumption, which is hopefully valid.
> -B

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