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

Tom£? Z£lusk� (JIRA) jira-events at lists.jboss.org
Thu May 17 04:38:52 EDT 2007


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


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