You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Florian Müller (JIRA)" <ji...@apache.org> on 2013/10/01 15:26:34 UTC

[jira] [Commented] (CMIS-726) AbstractCmisService.addTypeChildren

    [ https://issues.apache.org/jira/browse/CMIS-726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13782925#comment-13782925 ] 

Florian Müller commented on CMIS-726:
-------------------------------------

That's how it should work. The recursive part and filling the list happen a few lines below this code snippet.

> AbstractCmisService.addTypeChildren
> -----------------------------------
>
>                 Key: CMIS-726
>                 URL: https://issues.apache.org/jira/browse/CMIS-726
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-commons
>    Affects Versions: OpenCMIS 0.10.0
>            Reporter: Maciej Jankowski
>
> getTypeDescendants should recursively go down the tree of types and collect them. There is a code:
>  if (children != null && children.getList() != null && children.getList().size() > 0) {
>             List<TypeDefinitionContainer> list = new ArrayList<TypeDefinitionContainer>();
>             container.setChildren(list);
> It means that there is always an empty list added to the resulting list. Is that  how it should work? 
> In the end, the method always returns children instead of descendants.



--
This message was sent by Atlassian JIRA
(v6.1#6144)