Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0
-
Fix Version/s: 1.1 M1
-
Component/s: XML code generator
-
Labels:None
-
Environment:Castor 1.0
Xerces 1.4.4
Java 1.4.2_11
Eclipse 3.0.2
-
Number of attachments :
Description
The following part of the schema is not correctly translated. I assume the problem is that we have a value 'm' and 'M' in the list of restrictions:
XSD extract :
<xs:attribute name='DURATION_UNIT'>
<xs:simpleType>
<xs:restriction base='xs:string'>
<xs:enumeration value='Y' />
<xs:enumeration value='M' />
<xs:enumeration value='D' />
<xs:enumeration value='h' />
<xs:enumeration value='m' />
<xs:enumeration value='s' />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
Generated code extract :
private static java.util.Hashtable init()
//-- java.util.Hashtable init()
Issue Links
- duplicates
-
CASTOR-193
case-sensitive bug with simpleType enumerations
-
-
CASTOR-1373
java classes generated overwriting due to similar names in XML
-
I'd really appreciate if the attached XSD could be simplified as much as possible, so that it contains structures relevant to the problem only. Thanks in advance ....