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] Updated: (CXF-1266) Nil value for nillable array element is default-constructed
Date Wed, 28 Oct 2009 19:24:59 GMT

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

Daniel Kulp updated CXF-1266:
-----------------------------

    Assignee: Benson Margulies  (was: Daniel Kulp)


Benson, 

If I remove the @Ignore on the test for this in DocLitWrappedClientTest,  the generated message
looks like:
.......
          <jns0:stringItem>bean2</jns0:stringItem>
                </jns1:beanTwoNotRequiredItem>
            </jns3:beanArray>

            <jns3:beanArray/> <!-- NOTE the missing xsi:nil -->

            <jns3:beanArray xmlns:jns0='uri:org.apache.cxf.javascript.testns3' xmlns:jns1='uri:org.apache.cxf.javascript.testns'
xmlns:jns2='uri:org.apache.cxf.javascript.testns2' >
                <jns2:intItem>43</jns2:intItem>
                <jns1:longItem>0</jns1:longItem>
.......

Thus, it's getting schema validation errors.   In anycase, this seems to be a javascript generation
bug or something as that definitely should be nil.

> Nil value for nillable array element is default-constructed
> -----------------------------------------------------------
>
>                 Key: CXF-1266
>                 URL: https://issues.apache.org/jira/browse/CXF-1266
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>    Affects Versions: 2.1
>            Reporter: Benson Margulies
>            Assignee: Benson Margulies
>         Attachments: ii.xml
>
>
> My javascript code generates the (about to be) attached XML message for the beanFunction
operation of org.apache.cxf.javascript.fortest.SimpleDocLitBare. The service receives a default-constructed
object instead of a null pointer for the slot corresponding to the xsi:nil.

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