Author: doogie
Date: Sun May 3 02:14:11 2009
New Revision: 771015
URL:
http://svn.apache.org/viewvc?rev=771015&view=revLog:
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());
}