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