[jboss-jira] [JBoss JIRA] Closed: (JBRULES-857) salience comparison should not rely on subtraction

Mark Proctor (JIRA) jira-events at lists.jboss.org
Mon Jun 11 20:43:25 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBRULES-857?page=all ]

Mark Proctor closed JBRULES-857.
--------------------------------

    Fix Version/s:  4.0.0.MR3
       Resolution: Done

> salience comparison should not rely on subtraction
> --------------------------------------------------
>
>                 Key: JBRULES-857
>                 URL: http://jira.jboss.com/jira/browse/JBRULES-857
>             Project: JBoss Rules
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Conflict Resolution
>    Affects Versions: 3.0.6
>         Environment: WXP
>            Reporter: Tom?? Z?lusk?
>         Assigned To: Mark Proctor
>            Priority: Minor
>             Fix For:  4.0.0.MR3
>
>   Original Estimate: 2 minutes
>  Remaining Estimate: 2 minutes
>
> In class http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-core/src/main/java/org/drools/conflict/SalienceConflictResolver.java ,
> method compare, saliences should be compared by expression using operators <,>,==,?,: rather than subtraction.
> Setting salience as Integer.MIN_VALUE led to nondeterministic behavior since overflow occured.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list