cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benson Margulies (JIRA)" <>
Subject [jira] Commented: (CXF-1266) Nil value for nillable array element is default-constructed
Date Sat, 31 Oct 2009 18:28:59 GMT


Benson Margulies commented on CXF-1266:

I need some help ...

In the schema, the bean array is not set nillable. So what am I supposed to do to serialize
a null? Or are array elements nillable ex-officio?

    void beanFunction(@WebParam(name = "bean1") TestBean1 bean, 
                      @WebParam(name = "beanArray") TestBean1[] beans);

 /** {@inheritDoc}*/
    public void beanFunction(TestBean1 bean, TestBean1[] beans) {
        lastBean1 = bean;
        lastBean1Array = beans;

> Nil value for nillable array element is default-constructed
> -----------------------------------------------------------
>                 Key: CXF-1266
>                 URL:
>             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.

View raw message