Update of /var/cvs/src/org/mmbase/util
In directory james.mmbase.org:/tmp/cvs-serv12795

Modified Files:
      Tag: MMBase-1_8
        ResourceLoader.java 
Log Message:
fixed a typo (which pretty much broke the whole thing), and another detail


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/util


Index: ResourceLoader.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/util/ResourceLoader.java,v
retrieving revision 1.39.2.13
retrieving revision 1.39.2.14
diff -u -b -r1.39.2.13 -r1.39.2.14
--- ResourceLoader.java 13 Nov 2008 13:08:10 -0000      1.39.2.13
+++ ResourceLoader.java 14 Nov 2008 10:14:39 -0000      1.39.2.14
@@ -98,7 +98,7 @@
  * <p>For property-files, the java-unicode-escaping is undone on loading, and 
applied on saving, so there is no need to think of that.</p>
  * @author Michiel Meeuwissen
  * @since  MMBase-1.8
- * @version $Id: ResourceLoader.java,v 1.39.2.13 2008/11/13 13:08:10 michiel 
Exp $
+ * @version $Id: ResourceLoader.java,v 1.39.2.14 2008/11/14 10:14:39 michiel 
Exp $
  */
 public class ResourceLoader extends ClassLoader {
 
@@ -1686,6 +1686,7 @@
     private static final Map classWeights = new ConcurrentHashMap();
 
     private static void readClassWeights() {
+        classWeights.clear();
         Collection col = (Collection) 
classWeightProperties.get("classloaderpatterns");
         if (col != null) {
             Iterator i = col.iterator();
@@ -1729,7 +1730,7 @@
                                 }
                             }
                         }
-                        int r = w2 - 1;
+                        int r = w2 - w1;
                         return r == 0 ? u1.toString().compareTo(u2.toString()) 
: r;
 
                     }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to