[
https://issues.apache.org/jira/browse/TUSCANY-1109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12474228
]
Yang ZHONG commented on TUSCANY-1109:
-------------------------------------
The SDO spec hasn't described enough scoping details yet. Our impl is currently
based on EMF; here's what EMF has been doing:
EMF has one EPackage.Registry for each ClassLoader, and
EPackage.Registry.INSTANCE delegates to current Thread ClassLoader's
EPackage.Registry.
Each EPackage.Registry maps from NameSpace to EPackage, and EPackage maps
from name to Type.
Queries on EPackage.Registry will be executed locally, then delegated to
parent ClassLoader EPackage.Registry if no EPackage found for the given
NameSpace.
ClassLoader Hierarchy may be complicated, such as J2EE environment. On the
other hand, user may also change Thread current ClassLoader. They all affect
SDO XSDHelper#define behavior.
TypeHelperImpl#getType(Class) misses parent ClassLoader EPackage.Registry.
> TypeHelperImpl#getType(Class) queries wrong scope
> (EPackage.Registry.INSTANCE) and misses delegate scopes
> ---------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-1109
> URL: https://issues.apache.org/jira/browse/TUSCANY-1109
> Project: Tuscany
> Issue Type: Bug
> Components: Java SDO Implementation
> Affects Versions: Java-SDO-Mx
> Reporter: Yang ZHONG
> Fix For: Java-SDO-Mx
>
>
> TypeHelperImpl#getType(Class) queries wrong scope: EPackage.Registry.INSTANCE.
> And TypeHelperImpl#getType(Class) misses delegate scopes, because
> getRegistry().values() doesn't include delegateRegistry.values().
--
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]