You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Guillaume Dufrene (JIRA)" <tu...@ws.apache.org> on 2006/04/04 16:44:47 UTC

[jira] Created: (TUSCANY-148) SDOUtils : registerStaticTypes error with package name.

SDOUtils : registerStaticTypes error with package name.
-------------------------------------------------------

         Key: TUSCANY-148
         URL: http://issues.apache.org/jira/browse/TUSCANY-148
     Project: Tuscany
        Type: Bug

  Components: Java SDO Implementation  
    Reporter: Guillaume Dufrene
    Priority: Minor


What about classes which aren't in a package ?
I know this is a bad thing but it could happen... no ?

You search for a dot but in these case no dot will be found... 

String temp = factoryClass.getName().replaceFirst("Factory$", "PackageImpl");
int lastDot = temp.lastIndexOf('.'); // it returns -1 ...
String packageName = temp.substring(0, lastDot) + ".impl" + temp.substring(lastDot); // Hum ... crashed :-c

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


[jira] Resolved: (TUSCANY-148) SDOUtils : registerStaticTypes error with package name.

Posted by "Frank Budinsky (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-148?page=all ]
     
Frank Budinsky resolved TUSCANY-148:
------------------------------------

    Resolution: Invalid

This code is working with generated Factory classes, which in the current implementation always have an explicit package. This implementation is also just temporary, and will be replaced when we change the factory code generation pattern.

> SDOUtils : registerStaticTypes error with package name.
> -------------------------------------------------------
>
>          Key: TUSCANY-148
>          URL: http://issues.apache.org/jira/browse/TUSCANY-148
>      Project: Tuscany
>         Type: Bug

>   Components: Java SDO Implementation
>     Reporter: Guillaume Dufrene
>     Priority: Minor

>
> What about classes which aren't in a package ?
> I know this is a bad thing but it could happen... no ?
> You search for a dot but in these case no dot will be found... 
> String temp = factoryClass.getName().replaceFirst("Factory$", "PackageImpl");
> int lastDot = temp.lastIndexOf('.'); // it returns -1 ...
> String packageName = temp.substring(0, lastDot) + ".impl" + temp.substring(lastDot); // Hum ... crashed :-c

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