You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Christophe Lombart (JIRA)" <ji...@apache.org> on 2008/04/09 23:04:06 UTC

[jira] Created: (JCR-1528) CLONE -ManageableCollectionUtil doesn't support Maps

CLONE -ManageableCollectionUtil doesn't support Maps
----------------------------------------------------

                 Key: JCR-1528
                 URL: https://issues.apache.org/jira/browse/JCR-1528
             Project: Jackrabbit
          Issue Type: Bug
          Components: jackrabbit-ocm
    Affects Versions: 1.4
            Reporter: Christophe Lombart


ManageableCollectionUtil has two getManageableCollection methods, which do not currently return a ManageableCollection which wraps Maps. 

ManagedHashMap already exists in the codebase which I assume was created for this purpose, so both getManageableCollection methods could be modified so that they do something like:

            if (object instanceof Map){
                return new ManagedHashMap((Map)object);
            }


An alternative solution might be to modify the JCR mapping to support explicitly defining the 'ManagedXXX' class.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (JCR-1528) CLONE -ManageableCollectionUtil doesn't support Maps

Posted by "Christophe Lombart (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-1528?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christophe Lombart closed JCR-1528.
-----------------------------------

    Resolution: Fixed

oops error in Jira manipulation

> CLONE -ManageableCollectionUtil doesn't support Maps
> ----------------------------------------------------
>
>                 Key: JCR-1528
>                 URL: https://issues.apache.org/jira/browse/JCR-1528
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-ocm
>    Affects Versions: 1.4
>            Reporter: Christophe Lombart
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> ManageableCollectionUtil has two getManageableCollection methods, which do not currently return a ManageableCollection which wraps Maps. 
> ManagedHashMap already exists in the codebase which I assume was created for this purpose, so both getManageableCollection methods could be modified so that they do something like:
>             if (object instanceof Map){
>                 return new ManagedHashMap((Map)object);
>             }
> An alternative solution might be to modify the JCR mapping to support explicitly defining the 'ManagedXXX' class.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.