Skip to content

Commit 3acf4bf

Browse files
author
sigma_lmtd
committed
Reverted code that was breaking Windows file deletion
git-svn-id: file:///tmp/test-svn/trunk@4080 fe72c1cf-3628-48e9-8b72-1c46755d3cff
1 parent 3f0c0f1 commit 3acf4bf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drjava/src/edu/rice/cs/util/classloader/StickyClassLoader.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
import java.io.IOException;
3939

4040
import edu.rice.cs.plt.io.IOUtil;
41+
import edu.rice.cs.util.FileOps;
4142

4243
/** A {@link ClassLoader} that works as the union of two classloaders, but always tries to delegate to the first of
4344
* these. The purpose for this class is to ensure that classes loaded transitively due to some class's loading are
@@ -174,7 +175,7 @@ protected Class _loadWithSecondary(String name) throws ClassNotFoundException {
174175
throw new ClassNotFoundException("Resource not found: " + fileName);
175176
}
176177

177-
byte[] data = IOUtil.toByteArray(resource.openStream());
178+
byte[] data = FileOps.readStreamAsBytes(resource.openStream());
178179
try {
179180
return defineClass(name, data, 0, data.length);
180181
}

0 commit comments

Comments
 (0)