[jboss-jira] [JBoss JIRA] (DROOLS-1455) ClassCastException when using yearMonthDuration in decision table

Edson Tirelli (JIRA) issues at jboss.org
Tue Feb 28 10:49:00 EST 2017


    [ https://issues.jboss.org/browse/DROOLS-1455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13370465#comment-13370465 ] 

Edson Tirelli commented on DROOLS-1455:
---------------------------------------

Good catch, java Period class (used for 'Years and Months Duration') does not implement Comparable<Period>, but java Duration class does implement Comparable<Duration>. 

I will add code to specifically handle Period comparisons.


> ClassCastException when using yearMonthDuration in decision table
> -----------------------------------------------------------------
>
>                 Key: DROOLS-1455
>                 URL: https://issues.jboss.org/browse/DROOLS-1455
>             Project: Drools
>          Issue Type: Bug
>          Components: dmn engine
>            Reporter: Mélanie Gauthier
>            Assignee: Edson Tirelli
>         Attachments: yearMonthDuration.dmn
>
>
> Trying to run the attached example, a ClasCastException error is logged. dayTimeDuration works fine.
> A Period object is put in the context, created using 
> BuiltInType feelType = (BuiltInType) BuiltInType.determineTypeFromName(type);



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the jboss-jira mailing list