[jboss-jira] [JBoss JIRA] (DROOLS-2558) Improve error message for Msg.EXPRESSION_IS_RANGE_BUT_VALUE_IS_NOT_COMPARABLE
Matteo Mortari (JIRA)
issues at jboss.org
Mon May 21 04:21:00 EDT 2018
[ https://issues.jboss.org/browse/DROOLS-2558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matteo Mortari resolved DROOLS-2558.
------------------------------------
Resolution: Done
Done with https://github.com/kiegroup/drools/commit/7bc524569c67b0f3de6ad343fa5603c6571c2a78
> Improve error message for Msg.EXPRESSION_IS_RANGE_BUT_VALUE_IS_NOT_COMPARABLE
> -----------------------------------------------------------------------------
>
> Key: DROOLS-2558
> URL: https://issues.jboss.org/browse/DROOLS-2558
> Project: Drools
> Issue Type: Enhancement
> Components: dmn engine
> Reporter: Matteo Mortari
> Assignee: Matteo Mortari
>
> When the following expression is evaluated:
> {code:java}
> duration(\"PT24H\") in[ duration(\"P1Y2M\") .. duration(\"P1Y3M\")]
> {code}
> it is generating:
> {code:java}
> Value 'PT24H' is not comparable with range '[ org.kie.dmn.feel.lang.ast.RangeNode$ComparablePeriod at e .. org.kie.dmn.feel.lang.ast.RangeNode$ComparablePeriod at f ]'
> {code}
> while it is desired:
> {code:java}
> Value 'PT24H' is not comparable with range '[ duration( "P1Y2M" ) .. duration( "P1Y3M" ) ]'
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list