You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by do...@apache.org on 2009/05/03 04:14:11 UTC

svn commit: r771015 - /ofbiz/trunk/framework/common/src/org/ofbiz/common/authentication/AuthenticationComparator.java

Author: doogie
Date: Sun May  3 02:14:11 2009
New Revision: 771015

URL: http://svn.apache.org/viewvc?rev=771015&view=rev
Log:
Fix comparison of authenticators with classes loaded by different
classloaders.

Modified:
    ofbiz/trunk/framework/common/src/org/ofbiz/common/authentication/AuthenticationComparator.java

Modified: ofbiz/trunk/framework/common/src/org/ofbiz/common/authentication/AuthenticationComparator.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/src/org/ofbiz/common/authentication/AuthenticationComparator.java?rev=771015&r1=771014&r2=771015&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/src/org/ofbiz/common/authentication/AuthenticationComparator.java (original)
+++ ofbiz/trunk/framework/common/src/org/ofbiz/common/authentication/AuthenticationComparator.java Sun May  3 02:14:11 2009
@@ -69,6 +69,8 @@
             return -1;
         } else if (a1.getWeight() > a2.getWeight()) {
             return 1;
+        } else if (!a1.getClass().equals(a2.getClass())) {
+            return -1;
         } else {
             return a1.getClass().getName().compareTo(a2.getClass().getName());
         }