Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 55181CF12 for ; Tue, 1 Oct 2013 11:26:31 +0000 (UTC) Received: (qmail 60753 invoked by uid 500); 1 Oct 2013 11:26:31 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 60699 invoked by uid 500); 1 Oct 2013 11:26:26 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 60379 invoked by uid 99); 1 Oct 2013 11:26:23 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Oct 2013 11:26:23 +0000 Date: Tue, 1 Oct 2013 11:26:23 +0000 (UTC) From: "Maciej Jankowski (JIRA)" To: dev@chemistry.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CMIS-726) AbstractCmisService.addTypeChildren MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Maciej Jankowski created CMIS-726: ------------------------------------- Summary: 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 list = new ArrayList(); 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)