commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tcu...@apache.org
Subject svn commit: r449270 - /jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java
Date Sat, 23 Sep 2006 16:32:27 GMT
Author: tcurdt
Date: Sat Sep 23 09:32:24 2006
New Revision: 449270

URL: http://svn.apache.org/viewvc?view=rev&rev=449270
Log:
https://issues.apache.org/jira/browse/SANDBOX-174

bug fix provided by Maurizio Pillitu (m.pillitu at thebug.it)


Modified:
    jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java

Modified: jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java?view=diff&rev=449270&r1=449269&r2=449270
==============================================================================
--- jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java
(original)
+++ jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java
Sat Sep 23 09:32:24 2006
@@ -16,10 +16,11 @@
 package org.apache.commons.jci.listeners;
 
 import java.io.File;
-import java.io.FileReader;
+import java.io.FileInputStream;
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Iterator;
+
 import org.apache.commons.io.IOUtils;
 import org.apache.commons.jci.ReloadingClassLoader;
 import org.apache.commons.jci.stores.MemoryResourceStore;
@@ -87,7 +88,7 @@
             for (Iterator it = created.iterator(); it.hasNext();) {
                 final File file = (File) it.next();
                 try {
-                    final byte[] bytes = IOUtils.toByteArray(new FileReader(file));
+                    final byte[] bytes = IOUtils.toByteArray(new FileInputStream(file));
                     final String resourceName = ReloadingClassLoader.clazzName(repository,
file); 
                     //if (resourceName.endsWith(".class")) {
                         store.write(resourceName, bytes);
@@ -104,7 +105,7 @@
             for (Iterator it = changed.iterator(); it.hasNext();) {
                 final File file = (File) it.next();
                 try {
-                    final byte[] bytes = IOUtils.toByteArray(new FileReader(file));
+                    final byte[] bytes = IOUtils.toByteArray(new FileInputStream(file));
                     final String resourceName = ReloadingClassLoader.clazzName(repository,
file); 
                     //if (resourceName.endsWith(".class")) {
                         store.write(resourceName, bytes);



---------------------------------------------------------------------
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