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
Type: Bug
Components: xsd2jibx
Versions: xsd2jibx-beta0.2
Environment: Windows XP SP2, jdk1.4.2
Reporter: Rino van Wijngaarden
Fix For: xsd2jibx-beta0.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
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs