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

[JAVA-SDO] Incorrect generation of class with default value for a list

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Java-SDO-1.0, Java-SDO-Next
    • Java-SDO-1.1
    • Java SDO Tools
    • None
    • Windows XP, JRE 1.4.2 and JRE 1.5
    • Patch Available

    Description

      Hello,

      There seems to be a problem when generating static classes when lists are involved. I have the following lines in my schema:

      <xsd:attribute name="categoryType" type="address:CategoryType" use="required" default="myCat"/>

      <simpleType name="CategoryType">
      <list itemType="category" />
      </simpleType>

      This generates the following line in the impl class:

      protected static final Object CATEGORY_TYPE_DEFAULT_ = ((EFactory)ModelFactory.INSTANCE).createFromString(ModelPackageImpl.eINSTANCE.getObject(), "myCat");

      The class ModelPackageImpl doesn't exist.

      I've tried this with the 1.0 version of SDO and a version I built today.

      Let me know if you need any more information. Thanks,
      -Chris

      Attachments

        1. Address.xsd
          1 kB
          Chris Mildebrandt
        2. Address2.xsd
          1 kB
          Frank John Budinsky
        3. SDOClass.java
          171 kB
          Kelvin Goodson

        Activity

          People

            Unassigned Unassigned
            eyeofthefrog Chris Mildebrandt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: