You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Thierry Levieux (JIRA)" <ji...@apache.org> on 2007/04/13 14:41:15 UTC

[jira] Created: (JCR-844) ArrayStoreException while reregistering existing node types

ArrayStoreException while reregistering existing node types
-----------------------------------------------------------

                 Key: JCR-844
                 URL: https://issues.apache.org/jira/browse/JCR-844
             Project: Jackrabbit
          Issue Type: Bug
          Components: core
    Affects Versions: 1.2.3
            Reporter: Thierry Levieux



class: NodeTypeManagerImpl
method: public NodeType[] registerNodeTypes(InputStream in, String contentType, boolean reregisterExisting)

                ...
                return (NodeType[]) nodeTypes.toArray(new NodeTypeDef[nodeTypes.size()]);
                ...

=> should be (I suppose !)

                return (NodeType[]) nodeTypes.toArray(new NodeType[nodeTypes.size()]);


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


[jira] Resolved: (JCR-844) ArrayStoreException while reregistering existing node types

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

Stefan Guggisberg resolved JCR-844.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3

> => should be (I suppose !)
>
>               return (NodeType[]) nodeTypes.toArray(new NodeType[nodeTypes.size()]);

oops, absolutely :-) thanks for spotting this.

fixed in svn r528476



> ArrayStoreException while reregistering existing node types
> -----------------------------------------------------------
>
>                 Key: JCR-844
>                 URL: https://issues.apache.org/jira/browse/JCR-844
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.2.3
>            Reporter: Thierry Levieux
>         Assigned To: Stefan Guggisberg
>             Fix For: 1.3
>
>
> class: NodeTypeManagerImpl
> method: public NodeType[] registerNodeTypes(InputStream in, String contentType, boolean reregisterExisting)
>                 ...
>                 return (NodeType[]) nodeTypes.toArray(new NodeTypeDef[nodeTypes.size()]);
>                 ...
> => should be (I suppose !)
>                 return (NodeType[]) nodeTypes.toArray(new NodeType[nodeTypes.size()]);

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


[jira] Assigned: (JCR-844) ArrayStoreException while reregistering existing node types

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

Stefan Guggisberg reassigned JCR-844:
-------------------------------------

    Assignee: Stefan Guggisberg

> ArrayStoreException while reregistering existing node types
> -----------------------------------------------------------
>
>                 Key: JCR-844
>                 URL: https://issues.apache.org/jira/browse/JCR-844
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.2.3
>            Reporter: Thierry Levieux
>         Assigned To: Stefan Guggisberg
>
> class: NodeTypeManagerImpl
> method: public NodeType[] registerNodeTypes(InputStream in, String contentType, boolean reregisterExisting)
>                 ...
>                 return (NodeType[]) nodeTypes.toArray(new NodeTypeDef[nodeTypes.size()]);
>                 ...
> => should be (I suppose !)
>                 return (NodeType[]) nodeTypes.toArray(new NodeType[nodeTypes.size()]);

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