Author: sascharodekamp
Date: Wed Sep 21 12:29:52 2011
New Revision: 1173592

URL: http://svn.apache.org/viewvc?rev=1173592&view=rev
Log:
FIX: Using equals() with different object types 
(https://issues.apache.org/jira/browse/OFBIZ-4422). A patch from Dimitri Unruh 
which fixes the equals method of the RunningService class. 

Modified:
    ofbiz/trunk/framework/service/src/org/ofbiz/service/RunningService.java

Modified: 
ofbiz/trunk/framework/service/src/org/ofbiz/service/RunningService.java
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/framework/service/src/org/ofbiz/service/RunningService.java?rev=1173592&r1=1173591&r2=1173592&view=diff
==============================================================================
--- ofbiz/trunk/framework/service/src/org/ofbiz/service/RunningService.java 
(original)
+++ ofbiz/trunk/framework/service/src/org/ofbiz/service/RunningService.java Wed 
Sep 21 12:29:52 2011
@@ -71,7 +71,7 @@ public class RunningService {
     public boolean equals(Object o) {
         if (o != null && o instanceof RunningService) {
             RunningService x = (RunningService) o;
-            if (this.model.equals(x) && this.mode == x.getMode() && 
this.startStamp.equals(x.getStartStamp())) {
+            if (this.model.equals(x.getModelService()) && this.mode == 
x.getMode() && this.startStamp.equals(x.getStartStamp())) {
                 return true;
             }
         }


Reply via email to