[jboss-jira] [JBoss JIRA] (JBRULES-3715) when using BigDecimal Comparing to 0 only works for a certain number of time

Nicolas Heron (JIRA) jira-events at lists.jboss.org
Mon Jan 14 08:37:21 EST 2013


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

Nicolas Heron updated JBRULES-3715:
-----------------------------------

    Attachment: BugBigDecimalDrools.zip


Here is an example of junit that runs into the case
                
> when using BigDecimal Comparing to 0 only works for a certain number of time
> ----------------------------------------------------------------------------
>
>                 Key: JBRULES-3715
>                 URL: https://issues.jboss.org/browse/JBRULES-3715
>             Project: JBRULES
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: All
>    Affects Versions: 5.4.0.Final
>         Environment: Jdk1.6; Drools 5.5
>            Reporter: Nicolas Heron
>            Assignee: Mark Proctor
>         Attachments: BugBigDecimalDrools.zip
>
>
> in a rule like this : 
> rule "Hello World"
>   dialect "mvel"
>   no-loop
>     when
>       $c :  Contract( aValue == 0.0B )
>     then
>        $c.setDone("OK");
>        update($c);       
> end
> when called a certain number of times, the comparaison does not work

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list