Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r84 - trunk/pomstrap/src/main/java/com/prefetch/pomstrap/DependencyClassloader.java

pomstrap
Discussion topic

Back to topic list

svn commit: r84 - trunk/pomstrap/src/main/java/com/prefetch/pomstrap/DependencyClassloader.java

Reply

Author alag
Full name Alexis Agahi
Date 2007-10-10 05:44:02 PDT
Message Author: alag
Date: 2007-10-10 05:44:02-0700
New Revision: 84

Modified:
   trunk/pomstrap/src/m​ain/java/com/prefetc​h/pomstrap/Dependenc​yClassloader.java

Log:


Modified: trunk/pomstrap/src/m​ain/java/com/prefetc​h/pomstrap/Dependenc​yClassloader.java
Url: http://pomstrap.tigr​is.org/source/browse​/pomstrap/trunk/poms​trap/src/main/java/c​om/prefetch/pomstrap​/DependencyClassload​er.java?view=diff​&rev=84&p1=trun​k/pomstrap/src/main/​java/com/prefetch/po​mstrap/DependencyCla​ssloader.java&p2​=trunk/pomstrap/src/​main/java/com/prefet​ch/pomstrap/Dependen​cyClassloader.java​&r1=83&r2=84
====================​====================​====================​==================
--- trunk/pomstrap/src/m​ain/java/com/prefetc​h/pomstrap/Dependenc​yClassloader.java (original)
+++ trunk/pomstrap/src/m​ain/java/com/prefetc​h/pomstrap/Dependenc​yClassloader.java 2007-10-10 05:44:02-0700
@@ -24,6 +24,7 @@
 import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
+import java.util.WeakHashMap;
 /**
  * Hierachical Classloader working with the following rules:
  * If a class is not found in a dependency JAR file, create a child DependencyClassloader for each dependency of the current one
@@ -53,7 +54,7 @@
     private DependencyClassloader parentDependencyClassloader;
 
     // Map of class associated to this classloader
- private Map classMap = new Hashtable();
+ private Map classMap = new WeakHashMap();
     
     // POM dependency list assigned to this classloader (most of time if not grouped this list contains only one Dependency)
     private List dependencyList;

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r84 - trunk/pomstrap/src/main/java/com/prefetch/pomstrap/DependencyClassloader.java alag Alexis Agahi 2007-10-10 05:44:02 PDT
Messages per page: