[
http://jira.codehaus.org/browse/JIBX-99?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dennis Sosnoski resolved JIBX-99.
---------------------------------
Assignee: Dennis Sosnoski
Resolution: Fixed
Fix Version/s: (was: xsd2jibx-beta0.2)
JiBX 1.2
The CodeGen replacement for xsd2jibx, released as part of 1.2, handles choices
properly.
> Generated code when using choice v.s. sequence (class missing / not generated)
> ------------------------------------------------------------------------------
>
> Key: JIBX-99
> URL: http://jira.codehaus.org/browse/JIBX-99
> Project: JiBX
> Issue Type: Bug
> Components: xsd2jibx
> Affects Versions: xsd2jibx-beta0.2
> Environment: Windows XP SP2, jdk1.4.2
> Reporter: Rino van Wijngaarden
> Assignee: Dennis Sosnoski
> Fix For: JiBX 1.2
>
> Attachments: checklistitem.zip
>
>
> I'm noticing some strange things in the generated code when i use a "choice"
> v.s. "sequence" in a complexType
> See the attached documents:
> ChecklistItem1.xsd generates o.a. ChecklistItem1.java
> ChecklistItem2.xsd generates o.a. ChecklistItem2.java
> When generating code from ChecklistItem1.xsd, the generated
> ChecklistItem.java uses a class (ChecklistItemDocumenten) that jibx will not
> generate.
> This wil lead to an error when you want to compile the generated java code:
> symbol : class ChecklistItemDocumenten
> location: class nl.eform.atos.ChecklistItem
> protected ChecklistItemDocumenten documenten;
> ...
> After replacing the "choice" in ChecklistItem1.xsd with "sequence" (see
> ChecklistItem2.xsd)
> , the generated code is just fine (see ChecklistItem2.java)
--
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
------------------------------------------------------------------------------
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs