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

Generated SDO APIs have compilation errors when sub-type has the same name as super-type

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Java-SDO-1.0
    • Java-SDO-1.0
    • Java SDO Tools
    • None
    • WinXP

    Description

      Run the codegen tool on src/test/resources/extensible/infostreet.xsd. The generated code like the one below cannot be compiled because SDO_PROPERTY_COUNT becomes ambiguous.

      infostreet.xsd
      <xsd:complexType name="InfoType">
      <xsd:complexContent>
      <xsd:extension base="customer:InfoType">
      <xsd:sequence>
      <xsd:element name="street" type="xsd:string" />
      </xsd:sequence>
      </xsd:extension>
      </xsd:complexContent>
      </xsd:complexType>

      public class InfoTypeImpl extends InfoTypeImpl implements InfoType
      {

      public final static int STREET = InfoTypeImpl.SDO_PROPERTY_COUNT + 0;

      public final static int SDO_PROPERTY_COUNT = InfoTypeImpl.SDO_PROPERTY_COUNT + 1;

      Attachments

        1. 1470.patch
          7 kB
          David T. Adcox

        Activity

          People

            Unassigned Unassigned
            fuhwei Fuhwei Lwo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment