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

From: Andrus Adamchik (JIRA) ("Andrus)
Date: Sat Sep 02 2006 - 11:33:48 EDT

  • Next message: Andrus Adamchik (JIRA): "[JIRA] Created: (CAY-650) Support for char, Character, Byte arrays as primitive 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
    



    This archive was generated by hypermail 2.0.0 : Sat Sep 02 2006 - 11:37:15 EDT