cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [JIRA] Created: (CAY-649) ExtenedTypeMap.getRegisteredType(Class) incorrectly handles array types
Date Sat, 02 Sep 2006 15:33:48 GMT
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


Mime
View raw message