[jboss-jira] [JBoss JIRA] (DROOLS-976) Exception when comparing dates with after operator

Demian Calcaprina (JIRA) issues at jboss.org
Wed Nov 11 16:05:00 EST 2015


     [ https://issues.jboss.org/browse/DROOLS-976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Demian Calcaprina updated DROOLS-976:
-------------------------------------
    Priority: Minor  (was: Major)


> 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
>            Priority: Minor
>
> 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)


More information about the jboss-jira mailing list