[
https://issues.jboss.org/browse/DROOLS-976?page=com.atlassian.jira.plugin...
]
Demian Calcaprina updated DROOLS-976:
-------------------------------------
Description:
It seems when we have a LHS like this:
Order( $current.time after[1m] time )
Drools will fail in the evaluation with this exception:
Caused by: java.lang.ClassCastException: java.util.Date cannot be cast to java.lang.Long
at
org.drools.core.base.extractors.ConstantValueReader.getLongValue(ConstantValueReader.java:48)
[drools-core-6.1.0.Final.jar:6.1.0.Final]
at
org.drools.core.base.evaluators.AfterEvaluatorDefinition$AfterEvaluator.evaluate(AfterEvaluatorDefinition.java:365)
[drools-core-6.1.0.Final.jar:6.1.0.Final]
This is a PR that demonstrates the issue
https://github.com/droolsjbpm/drools/pull/554
was:
It seems when we have a LHS like this:
Order( $current.time after[1m] time )
Drools will fail in the evaluation with this exception:
Caused by: java.lang.ClassCastException: java.util.Date cannot be cast to java.lang.Long
at
org.drools.core.base.extractors.ConstantValueReader.getLongValue(ConstantValueReader.java:48)
[drools-core-6.1.0.Final.jar:6.1.0.Final]
at
org.drools.core.base.evaluators.AfterEvaluatorDefinition$AfterEvaluator.evaluate(AfterEvaluatorDefinition.java:365)
[drools-core-6.1.0.Final.jar:6.1.0.Final]
Exception when comparing dates with after operator
--------------------------------------------------
Key: DROOLS-976
URL:
https://issues.jboss.org/browse/DROOLS-976
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 6.3.0.Final
Reporter: Demian Calcaprina
Assignee: Mario Fusco
It seems when we have a LHS like this:
Order( $current.time after[1m] time )
Drools will fail in the evaluation with this exception:
Caused by: java.lang.ClassCastException: java.util.Date cannot be cast to java.lang.Long
at
org.drools.core.base.extractors.ConstantValueReader.getLongValue(ConstantValueReader.java:48)
[drools-core-6.1.0.Final.jar:6.1.0.Final]
at
org.drools.core.base.evaluators.AfterEvaluatorDefinition$AfterEvaluator.evaluate(AfterEvaluatorDefinition.java:365)
[drools-core-6.1.0.Final.jar:6.1.0.Final]
This is a PR that demonstrates the issue
https://github.com/droolsjbpm/drools/pull/554
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)