[
http://issues.apache.org/jira/browse/TUSCANY-711?page=comments#action_12434007
]
Yang ZHONG commented on TUSCANY-711:
------------------------------------
Thanks a lot for such detailed info, I'm looking at this issure.
As for Ron fix 1, I agree with Ron it's not really correct since validName is
also used for type, property and so on other than package.
As for Ron fix 2, there's also createAnnotation calling qualifiedPackageName,
maybe that needs to be replaced with getDefaultPackageName too
As for Ron fix 3, if all qualifiedPackageName callers (getEPackage &
createAnnotation so far, unknown in future) need to be applied SDO policies,
I agree with Ron it's the most straightforward solution so far.
Furthermore, the only caller of getDefaultPackageName, getEcoreAttribute so
far, could also potentially call the SDO version of qualifiedPackageName.
So I'm thinking following steps to fix the issure:
2-1. rename "static getDefaultPackageName" to "qualifiedPackageName"
2-2. call "qualifiedPackageName" instead of "getDefaultPackageName" in
getEcoreAttribute
Comments?
> Tuscany SDO generates invalid namespace prefixes for namespaces that end with
> a '-' followed by a number
> --------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-711
> URL: http://issues.apache.org/jira/browse/TUSCANY-711
> Project: Tuscany
> Issue Type: Bug
> Components: Java SDO Implementation
> Affects Versions: Java-M1
> Environment: Win2K Sun JDK 1.4.2_11
> Reporter: Ron Gavlin
> Priority: Critical
>
> The Tuscany SDO Serializer generates an invalid namespace prefix for
> namespaces that end with a '-' followed by a number.
> For example, Tuscany SDO generates the invalid namespace prefix "1" for
> namespace http://www.example.com/simple-1. Any DataObjects saved with the
> .../simple-1 namespace cannot be subsequently loaded.
> I suspect this may be an EMF bug.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]