Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Duplicate
-
Affects Version/s: 1.1
-
Fix Version/s: 1.1.1
-
Component/s: None
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
Description
Basically if i have a complex type with an element like:
<xs:sequence>
<xs:element name="ChosenChoice" type="ChosenChoice" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
the generated source SHOULD create a class that has a vector to hold chosenchoice objects and have the normal add and remove methods etc... however it does not do this at all! It creates a class that holds a single chosenchoice object
.
I've attached a unit test with two schemas testGood.xsd and testBad.xsd - they are nearly identical, except from the testGood.xsd file has an 'A' character appended to the element name which causes it to generate source as intended:
<....>
<xs:element name="ChosenChoiceA" type="ChosenChoice" minOccurs="0" maxOccurs="unbounded"/>
</....>
Attachments
Issue Links
| This issue is related to: | ||||
| CASTOR-1880 | Sequences don't map to list type, just single instance |
|
|
|
Woops in the testGood.xsd i've appended an 'A' to all instances of ChosenChoice instead of just the element name. It still doesn't work as described above - but it does seem to be based on the element name. Attaching new zip to reflect changes called srcgen-bugger.zip please use this one for testing with