You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metamodel.apache.org by "Jamie goodyear (JIRA)" <ji...@apache.org> on 2017/10/22 20:10:00 UTC

[jira] [Created] (METAMODEL-1168) MetaModelHelper getGrouped API call triggers a StackOverflow

Jamie goodyear created METAMODEL-1168:
-----------------------------------------

             Summary: MetaModelHelper getGrouped API call triggers a StackOverflow
                 Key: METAMODEL-1168
                 URL: https://issues.apache.org/jira/browse/METAMODEL-1168
             Project: Apache MetaModel
          Issue Type: Bug
    Affects Versions: 5.0.0
            Reporter: Jamie goodyear



MetaModelHelper getGrouped public method:

{{public static DataSet getGrouped(List<SelectItem> selectItems, DataSet dataSet,
            Collection<GroupByItem> groupByItems) {
        return getGrouped(selectItems, dataSet, groupByItems);
}}}

When this API is called:

{{public void testGetGroupedByCollection() {
        List<SelectItem> selectItems = new ArrayList<>();
        DataSet inputDataSet = null;
        Collection<GroupByItem> groupByItemCollection = null;
        DataSet dataSet = MetaModelHelper.getGrouped(selectItems, inputDataSet, groupByItemCollection);
        assertNotNull(dataSet);
}}}

It results in a Stackoverflow:
{{Tests in error: 
  MetaModelHelperTest.testGetGroupedByCollection ยป StackOverflow}}

This call should either be removed, or altered to break the recursive loop.

Was the intent to convert "Collection<GroupByItem>" to a List<GroupByItem> for calling that getGrouped signature?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)