Hi, can you please open a new Jira ticket at
http://jira.codehaus.org/browse/CASTOR as we need to have a detailed look at this. Regards Werner Jacinto, Alex (GE Infra, Energy) wrote: > Hi, > > I recently updated to version 1.3 and while generating source code, I > encountered the following error: > > java.lang.IllegalArgumentException: duplicate name found: A > > It is failing because of the following schema: > > ... > <xs:simpleType name="BaseType"> > <xs:restriction base="xs:string"> > <xs:enumeration value="A"/> > <xs:enumeration value="B"/> > <xs:enumeration value="C"/> > <xs:enumeration value="D"/> > <xs:enumeration value="E"/> > <xs:enumeration value="F"/> > </xs:restriction> > </xs:simpleType> > ... > <xs:simpleType name="AnotherType"> > <xs:restriction base="basetype"> > <xs:enumeration value="A"/> > <xs:enumeration value="B"/> > </xs:restriction> > </xs:simpleType> > ... > > Observations: > - I never noticed this but in the version I have, all of the enumeration > are included in AnotherType instead of just A and B (maybe this was > fixed already). > - The error above does not happen if I set > org.exolab.castor.builder.forceJava4Enums property to true > > Thanks in advance, > Alex > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

