Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.9.3.9
-
Fix Version/s: 1.2
-
Component/s: XML code generator
-
Labels:None
-
Environment:Operating System: All
Platform: PC
-
Bugzilla Id:887
-
Testcase included:yes
-
Number of attachments :
Description
Reported by Ozgur Balsoy:
I have an element X which is extended from xsd:string and defaulted to a
value "Y"
I have another element Z which contains X as a reference (or not, it does not
matter). When I generate the source code for this schema, X is initialized in Z
in a very weird way:
X _x = new X("Y");
There is no X(string) constructor generated. Is this a valid schema?
I have attached the schema and the generated code. I have tried it with 0.9.3.9
and today's CVS copy.
Ozgur
Activity
Bruce Snyder
made changes -
| Field | Original Value | New Value |
|---|---|---|
| issue.field.bugzillaimportkey | 887 | 22365 |
Ralf Joachim
made changes -
| Assignee | Arnaud Blandin [ blandin@intalio.com ] |
Ralf Joachim
made changes -
| Component/s | XML [ 11330 ] | |
| Component/s | XML source generator [ 11761 ] | |
| Bugzilla Id | 887 |
Edward Kuns
made changes -
| Assignee | Edward Kuns [ edward.kuns@rockwellfirstpoint.com ] |
Edward Kuns
made changes -
| Summary | Generated classes don't compile when using "default" | Generated classes don't compile when using "default" on an element that extends xsd:string |
| Bugzilla Id | 887 | |
| Testcase included | yes |
Edward Kuns
made changes -
| Fix Version/s | 1.2 [ 13559 ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Werner Guttmann
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |