Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 0.9.9.1, 1.0 M2, 1.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1 M1, 1.1 M2, 1.1 M3, 1.1
-
Fix Version/s: 1.3.4
-
Component/s: XML code generator
-
Labels:None
-
Number of attachments :
Description
The source generation of the following schema:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="TestElement" type="TestType"/>
<xs:complexType name="TestType">
<xs:attribute name="MyAttrib" type="MyType"/>
</xs:complexType>
<xs:simpleType name="MyType">
<xs:list itemType="BaseType"/>
</xs:simpleType>
<xs:simpleType name="BaseType">
<xs:restriction base="xs:string">
<xs:pattern value="[0-9]
"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
generates the java-class "TestType.java". This contains e.g. the following line:
public void addMyAttrib(MyType vMyAttrib)
unfortunately the class MyType was not generated by the source generator.
Issue Links
- is depended upon by
-
CASTOR-1144
Code generation for attribute fails
-
- is duplicated by
-
CASTOR-1685
Error unmarshalling <xs:list> of double
-
-
CASTOR-559
No generation of SimpleType references in same schema
-
-
CASTOR-814
schema import fails to recognize last group, include of schema works fine
-
I tested it again with the 'old' castor version 0.9.5.2. ... the class "MyType.java" was generated.
I think that this problem should be fixed.