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

XSD2JavaGenerator generates non-compilable FactoryImpl class with complexType named "Descriptor"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • Java-SDO-Next
    • Java SDO Tools
    • None
    • Windows XP SP2 w/Sun JDK 1.4.2_11

    Description

      I have a schema with a complexType named "Descriptor".

      The generated FactoryImpl.java class includes the following code which does not compile because the return type "org.eclipse.emf.ecore.EPackage.Descriptor" is not compatible with Factory.createDescriptor() with return type "myNamespace.Descriptor":

      public Descriptor createDescriptor()
      {
      DescriptorImpl descriptor = new DescriptorImpl();
      return descriptor;
      }

      I suspect this is an EMF bug but I am reporting it here.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rgavlin Ron Gavlin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: