[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
Thu May 17 10:51:00 EDT 2018
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 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