Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
current (nightly)
-
None
-
JDK 1.5.0, JaxMe CVS
Description
JaxMe accepts (and generates faulty code for) the following schema:
<xs:group name="params">
<xs:choice>
<xs:element name="string" type="xs:string"/>
<xs:element name="int" type="xs:int"/>
<xs:element name="boolean" type="xs:boolean"/>
</xs:choice>
</xs:group>
<xs:element name="call">
<xs:complexType>
<xs:group ref="params" maxOccurs="unbounded"/>
</xs:complexType>
</xs:element>
However, it should give an error message about not supporting model groups with maxOccurs > 1, as it does with the following schema:
<xs:element name="call">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="string" type="xs:string"/>
<xs:element name="int" type="xs:int"/>
<xs:element name="boolean" type="xs:boolean"/>
</xs:choice>
</xs:complexType>
</xs:element>
Perhaps somewhat related to JAXME-61, but I think the correct behaviour would be to fail with an error message on the first schema above until support for groups with maxOccurs > 1 is working?