[ 
http://issues.apache.org/jira/browse/TUSCANY-711?page=comments#action_12434198 
] 
            
Frank Budinsky commented on TUSCANY-711:
----------------------------------------

Thank you Ron and Yang for doing the background work.

I think the correct answer is #3. 

Yang, we can't rename the static getDefaultPackageName() method (as you 
suggested in 2-1) because it's called by other components (SCA tools).

I also noticed that once we override qualifiedPackageName(), I think there's no 
need for the getEcoreAttribute() override in SDOXSDEcoreBuilder, because all it 
will be doing now is setting the package name to the same thing as 
qualifiedPackageName returned. So, I commeted out that method as well.

I committed the fix in revision 442625.

I think it would be good to add a JUnit for this.

Thanks,
Frank.


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

Reply via email to