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

[jira] Resolved: (TUSCANY-1254) Codegen on a type inheriting from a type in different namespace will result in mis-mapping the feature IDs

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

Frank Budinsky resolved TUSCANY-1254.
-------------------------------------

    Resolution: Fixed

Fixed in revision 536537. Thanks to Fuhwei for narrowing it down to such a simple test case.

> Codegen on a type inheriting from a type in different namespace will result in mis-mapping the feature IDs
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1254
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1254
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>    Affects Versions: Java-SDO-beta1
>         Environment: WinXP
>            Reporter: Fuhwei Lwo
>         Attachments: open.xsd, open2.xsd, OpenTypeTest.java
>
>
> Based on my observation, there are two sets of feature ID were generated for the Type - 1) ID numbering from EMF 2) ID numbering for SDO. This problem occurs when the child type was codegened, its IDs for SDO were mapped to those from EMF. So when you tried to get the property using dynamic API, since the feature ID is wrong, unpredictable exception will occur. The exception can be NPE or ClassCastException depending on the characteristic of the wrong ID.

-- 
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