[ http://jira.codehaus.org/browse/JIBX-348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Sosnoski updated JIBX-348: --------------------------------- The code generated from schema by JiBX CodeGen is designed to always have a collection present, so this issue will only arise if you're setting the collection to null in your own code. The current generated code API doesn't make it clear that the value should not be set to null, though, so I'll agree that something should be done differently. It should be possible to make the <collection> optional even with no wrapper element, and I'll look at making that change for the next release. > codegen - generating <collection> in binding xml without usage=optional with > minOccurs=0 > ---------------------------------------------------------------------------------------- > > Key: JIBX-348 > URL: http://jira.codehaus.org/browse/JIBX-348 > Project: JiBX > Issue Type: Bug > Components: CodeGen > Affects Versions: JiBX 1.2.1 > Reporter: Arnabkanti > Assignee: Dennis Sosnoski > > codegen is generating binding xml with <collection> element having no > usage=optional even when the minOccurs is set to zero (maxOccurs=unbounded) > XSD Snippet: > <xsd:complexType name="ABC"> > <xsd:sequence> > <xsd:element type="test:xxT" name="xx" > minOccurs="0" maxOccurs="unbounded" /> > </xsd:sequence> > </xsd:complexType> > binding Xml: > <collection get-method="getXxs" set-method="setXxs"> > <structure map-as="ns2:xxT" name="xx"/> > </collection> > Thanks, > Arnab -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ jibx-devs mailing list jibx-devs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-devs