Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-1483

Static SDO generator: problem with elements named internal*

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Java-SDO-beta1
    • Java-SDO-1.1
    • Java SDO Tools
    • None

    Description

      Hi,
      I run into a problem with the static generated SDOs, when having a xsd with the following two elements:
      <xsd:element name="abc" type="xsd:integer" />
      <xsd:element name="internalAbc" type="xsd:integer" />

      In the generated Impl class this leads twice to the same constant INTERNAL_ABC.

      The xsd elements might simply be renamed in order to avoid this clash, but there might be situations where this is not possible.
      The generator could use a different, less probable prefix (e.g. __INTERNAL).

      Thanks, Daniel.

      Attachments

        1. test1483.xsd
          0.5 kB
          David T. Adcox
        2. 1483-withTestCaseInToolsTest.patch
          44 kB
          Amita Vadhavkar
        3. 1483-withTestCase.patch
          42 kB
          Amita Vadhavkar
        4. 1483.patch
          38 kB
          David T. Adcox

        Activity

          People

            Unassigned Unassigned
            dpeter Daniel Peter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: