The dependency/imported package was not initialized if the codegen tool was 
provided with -javaPackage option for the target codegen package
--------------------------------------------------------------------------------------------------------------------------------------------

                 Key: TUSCANY-1141
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1141
             Project: Tuscany
          Issue Type: Bug
          Components: Java SDO Tools
    Affects Versions: Java-SDO-M3
            Reporter: Fuhwei Lwo
             Fix For: Java-SDO-M3


There are base.xsd and sample.xsd where sample.xsd imports the base.xsd.  When 
running the codegen tool with and without -javaPackage switch, two different 
results occur.

With "-javaPackage org.example.sample", the init() of SampleFactoryImpl.java 
contains - 
// Initialize simple dependencies 
    SDOUtil.registerStaticTypes(SampleFactory.class);  ==> Should be 
SDOUtil.registerStaticTypes(BaseFactory.class);
    SDOUtil.registerStaticTypes(SDOFactory.class); 
    SDOUtil.registerStaticTypes(ModelFactory.class); 

Without the switch, the init() contains - 
// Initialize simple dependencies 
    SDOUtil.registerStaticTypes(BaseFactory.class); 
    SDOUtil.registerStaticTypes(SDOFactory.class); 
    SDOUtil.registerStaticTypes(ModelFactory.class);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to