Matteo Mortari created DROOLS-2558:
--------------------------------------
Summary: 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@e ..
org.kie.dmn.feel.lang.ast.RangeNode$ComparablePeriod@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)