History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: CASTOR-2057
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Constantin Dumitrascu
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
castor

Castor and substitutionGroups

Created: 27/Jul/07 07:10 AM   Updated: 27/Jul/07 07:10 AM
Component/s: XML code generator
Affects Version/s: 1.1.2.1
Fix Version/s: None

Time Tracking:
Not Specified

Environment: Windows XP, Eclipse WTP


 Description  « Hide
Altought the release 1.1.1 added substitutionGroups support, the Castor version 1.1.2.1 doesn't seem to do anything for substitution groups:

<xsd:element name="A" type="cnv:A_T" />

<xsd:element name="B" substitutionGroup="cnv:A" type="cnv:A_T" />

<xsd:complexType name="A_T" />

<xsd:complexType name="MyClass">
<xsd:sequence>
<xsd:element ref="cnv:A" />
</xsd:sequence>
</xsd:complexType>

the resulted java code is: A extending A_T, B extending A_T and MyClass has the property of type A. Obviously, unmarhalling

<MyClass>
<B />
</MyClass>

fails.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.