Uploaded image for project: 'JaxMe'
  1. JaxMe
  2. JAXME-51

JaxMe does not distinguish element1 and element_1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • current (nightly)
    • None
    • JaxMe Core
    • None

    Description

      Minor bug: an IllegalStateException may occur when a number follows an underscore in an element name. The schema below demonstrates the problem: JaxMe will generate two fields called "_element1".

      <?xml version="1.0" encoding="utf-8"?>
      <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns="http://bug" targetNamespace="http://bug">

      <xsd:element name="bug">
      <xsd:complexType>
      <xsd:all>
      <xsd:element name="element1" type="xsd:string" />
      <xsd:element name="element_1" type="xsd:string" />
      </xsd:all>
      </xsd:complexType>
      </xsd:element>

      </xsd:schema>

      Attachments

        Activity

          People

            Unassigned Unassigned
            gbarentsen Geert Barentsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: