title: Why does JAXB 2.0 with jdk1.5 fail to recognize string enumerations that start with a numeral?
body: <p>Following is the sample schema I used to try to generate the JAXB classes.  What I noticed is that when I have a string type with enumerations, for instance, in my case the stepType, with values starting with a numeral, JAXB does not generate a separate enum class say StepType class.  It works fine, when I use only alphabets for the value.  Could someone tell whether this is a known bug please?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xsd:schema xmlns:xsd = "http://www.w3.org/2001/XMLSchema"&gt;
  
  &lt;xsd:element name="WorkoutSchedule" &gt;
    &lt;xsd:complexType&gt;
      &lt;xsd:sequence&gt;
        &lt;xsd:element name="WorkoutSchedule" minOccurs = "0" maxOccurs="unbounded"&gt;
        &lt;xsd:complexType&gt;
          &lt;xsd:sequence&gt;
            &lt;xsd:element name="ScheduleItem" minOccurs="1" maxOccurs="1"&gt;
            &lt;xsd:complexType&gt;
            &lt;xsd:sequence&gt;
              &lt;xsd:element name="Step" minOccurs="1" maxOccurs="1" type="stepType"/&gt;
            &lt;/xsd:sequence&gt;
            &lt;/xsd:complexType&gt;
            &lt;/xsd:element&gt;
          &lt;/xsd:sequence&gt;
          &lt;/xsd:complexType&gt;
        &lt;/xsd:element&gt;
      &lt;/xsd:sequence&gt;
    &lt;/xsd:complexType&gt;
  &lt;/xsd:element&gt;
  
  &lt;xsd:simpleType name="stepType"&gt;
    &lt;xsd:restriction base="xsd:string"&gt;
      &lt;xsd:enumeration value="1stStep"&gt;&lt;/xsd:enumeration&gt;
      &lt;xsd:enumeration value="2ndStep"&gt;&lt;/xsd:enumeration&gt;
      &lt;xsd:enumeration value="3rdStep"&gt;&lt;/xsd:enumeration&gt;
    &lt;/xsd:restriction&gt;
  &lt;/xsd:simpleType&gt;
  
  &lt;/xsd:schema&gt;
  </code></pre>