Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
OpenCMIS 0.10.0
-
None
-
None
Description
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.