[jboss-jira] [JBoss JIRA] (DROOLS-1671) Wrong months handling in Period FEEL expressions
Tibor Zimányi (JIRA)
issues at jboss.org
Fri Jul 21 08:52:01 EDT 2017
Tibor Zimányi created DROOLS-1671:
-------------------------------------
Summary: Wrong months handling in Period FEEL expressions
Key: DROOLS-1671
URL: https://issues.jboss.org/browse/DROOLS-1671
Project: Drools
Issue Type: Bug
Components: dmn engine
Affects Versions: 7.1.0.Final
Reporter: Tibor Zimányi
Assignee: Tibor Zimányi
Fix For: 7.2.0.Final
When handling Periods in InfixOpNode [1], there is getMonths() method used, which returns just months part of the Period. There should be call to toTotalMonths() so also years are incorporated in the result. I will provide PR for this.
[1] https://github.com/kiegroup/drools/blob/a631144cf7c5854775253ef619dd720405123800/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/InfixOpNode.java#L257
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list