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

Naming scheme used for variables in code gen factory init() method breaks under specific circumstances

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Java-SDO-1.0
    • Java-SDO-1.1
    • Java SDO Tools
    • None
    • n/a

    Description

      A new code gen pattern was recently added to change how dependent packages are initialized in the xxxFactoryImpl.init() method. Under this new pattern, all dependent packages are initialized via the factoryInterface.INSTANCE method. An initialization call is made for each dependent gen package. The getImportedFactoryInterfaceName() is used to retrieve the short name. This value is mashed with the text 'Instnace' to form a variable name. If circumstances dictate that multiple packages contain the same factory interface name, the getImportedFactoryInterfaceName() will fully qualify the response instead of using the short name. This breaks the generated code, due to the use of a '.' in the variable name.

      Attachments

        1. 1505.patch
          71 kB
          David T. Adcox
        2. 1505.patch
          69 kB
          David T. Adcox
        3. test1505.zip
          24 kB
          David T. Adcox

        Activity

          People

            Unassigned Unassigned
            dtadcox David T. Adcox
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: