You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2006/09/02 17:33:48 UTC

[JIRA] Created: (CAY-649) ExtenedTypeMap.getRegisteredType(Class) incorrectly handles array types

ExtenedTypeMap.getRegisteredType(Class) incorrectly handles array types
-----------------------------------------------------------------------

         Key: CAY-649
         URL: http://issues.apache.org/cayenne/browse/CAY-649
     Project: Cayenne
        Type: Bug

  Components: Cayenne Core Library  
    Versions: 1.2 [STABLE], 3.0, 2.0 [STABLE]    
    Reporter: Andrus Adamchik
 Assigned to: Andrus Adamchik 
    Priority: Trivial
     Fix For: 1.2 [STABLE], 3.0, 2.0 [STABLE]


Array class name key is built incorrectly inside ExtenedTypeMap.getRegisteredType(Class):

 if (javaClass.isArray()) {
            // only support single dimensional arrays now
            name = javaClass.getComponentType() + "[]";
        }


must be

if (javaClass.isArray()) {
            // only support single dimensional arrays now
            name = javaClass.getComponentType().getName() + "[]";
        }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/cayenne/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira