[ https://issues.apache.org/jira/browse/CXF-1865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp closed CXF-1865. ---------------------------- Resolution: Won't Fix This is working exactly per JAXB spec. Section 6.2.3.4 and 7.5.5 of the JAXB spec dictates that if it is not possible to generate a valid java identifier for an Enum value using the JAXB mapping algorithm, then it does not generate an enum class and just maps it to string. The "2_VALUE_2" value cannot be mapped as java identifiers cannot start with a number. Section 7.5.5 specifies a customization that can be put in a jaxb binding file to make it generate an enum with values of "VALUE_#" instead. <globalBindings typesafeEnumMemberName="generateName"/> > wsdl2java does not generate enums with values that start with underscore or > integers > ------------------------------------------------------------------------------------ > > Key: CXF-1865 > URL: https://issues.apache.org/jira/browse/CXF-1865 > Project: CXF > Issue Type: Bug > Components: Tooling > Affects Versions: 2.1.2 > Environment: windows xp > Reporter: Ed Wei > > If I have a simple type definition similar to the following, no enum class > gets generated. > <xs:simpleType name='MyEnumType'> > <xs:restriction base='xs:string'> > <xs:enumeration value='_VALUE_1'> > <xs:enumeration value='2_VALUE_2'/> > </xs:restriction> > </xs:simpleType> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.