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

Codegen on a type inheriting from a type in different namespace will result in mis-mapping the feature IDs

    XMLWordPrintableJSON

Details

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

    Description

      Based on my observation, there are two sets of feature ID were generated for the Type - 1) ID numbering from EMF 2) ID numbering for SDO. This problem occurs when the child type was codegened, its IDs for SDO were mapped to those from EMF. So when you tried to get the property using dynamic API, since the feature ID is wrong, unpredictable exception will occur. The exception can be NPE or ClassCastException depending on the characteristic of the wrong ID.

      Attachments

        1. open.xsd
          1 kB
          Fuhwei Lwo
        2. open2.xsd
          1 kB
          Fuhwei Lwo
        3. OpenTypeTest.java
          1 kB
          Fuhwei Lwo

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: