commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tcu...@apache.org
Subject svn commit: r153860 - jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/CompilingClassLoader.java
Date Mon, 14 Feb 2005 21:55:30 GMT
Author: tcurdt
Date: Mon Feb 14 13:55:28 2005
New Revision: 153860

URL: http://svn.apache.org/viewcvs?view=rev&rev=153860
Log:
fix a race condition. start the monitor thread after the listener was added


Modified:
    jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/CompilingClassLoader.java

Modified: jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/CompilingClassLoader.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/CompilingClassLoader.java?view=diff&r1=153859&r2=153860
==============================================================================
--- jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/CompilingClassLoader.java
(original)
+++ jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/CompilingClassLoader.java
Mon Feb 14 13:55:28 2005
@@ -71,10 +71,6 @@
         compiler = new EclipseJavaCompiler();
                 
         fam = new AlterationMonitor(repository); 
-        Thread myThread = new Thread(fam); 
-        myThread.start();
-
-        delegate = new ResourceStoreClassLoader(parent, store);
 
         fam.addListener(new AlterationListener() {
 
@@ -180,7 +176,10 @@
             }
             });
         
-        
+        delegate = new ResourceStoreClassLoader(parent, store);
+
+        Thread myThread = new Thread(fam); 
+        myThread.start();        
     }
 
     private void reload() {



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message