You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Fuhwei Lwo (JIRA)" <tu...@ws.apache.org> on 2007/02/27 16:35:05 UTC

[jira] Updated: (TUSCANY-1141) The dependency/imported package was not initialized if the codegen tool was provided with -javaPackage option for the target codegen package

     [ https://issues.apache.org/jira/browse/TUSCANY-1141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fuhwei Lwo updated TUSCANY-1141:
--------------------------------

    Attachment: 1141.patch
                sample.xsd
                base.xsd

Attached base.xsd, sample.xsd, and the patch for fixing the problem.

> 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
>
>         Attachments: 1141.patch, base.xsd, sample.xsd
>
>
> 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org