[jboss-jira] [JBoss JIRA] (DROOLS-2921) [DMN Designer] Stack overflow when a Context has two Relations
Michael Anstis (JIRA)
issues at jboss.org
Thu Aug 23 10:39:00 EDT 2018
[ https://issues.jboss.org/browse/DROOLS-2921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13623305#comment-13623305 ]
Michael Anstis commented on DROOLS-2921:
----------------------------------------
The problem is that {{RelationColumn.getMinimumWidthOfPeers()}} traverses rows in the parent table, excluding that of the current {{RelationGrid}}, and gets the expression editors' [minimum width|https://github.com/kiegroup/kie-wb-common/blob/master/kie-wb-common-dmn/kie-wb-common-dmn-client/src/main/java/org/kie/workbench/common/dmn/client/editors/expressions/types/relation/RelationColumn.java#L84]. When there are two {{RelationGrids}} this call does the opposite; i.e. to get the minimum width of peers it tries to get the minimum width of the first table, that tries to get the minimum width of the second, that tries the first etc...
> [DMN Designer] Stack overflow when a Context has two Relations
> --------------------------------------------------------------
>
> Key: DROOLS-2921
> URL: https://issues.jboss.org/browse/DROOLS-2921
> Project: Drools
> Issue Type: Bug
> Components: DMN Editor
> Affects Versions: 7.10.0.Final
> Reporter: Michael Anstis
> Assignee: Michael Anstis
> Priority: Critical
> Labels: drools-tools
>
> Create a {{Context}} with two {{ContextEntries}}. Set both to be a {{Relation}}. Stack overflow :-(
> You can have multiple {{Relation}} in different {{Contexts}} it only happens when within the same {{Context}}.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list