File classFile = slash("BIN").slash(name.replace('.', File.separatorChar) + ".class");
if (classFile.exists()) {
try {
- byte[] b = InputStreamToByteArray.convert(new FileInputStream(classFile));
+ FileInputStream fis = new FileInputStream(classFile);
+ byte[] b = InputStreamToByteArray.convert(fis);
+ fis.close();
Log.debug(this, " loading " + name + " from " + classFile.getAbsolutePath());
return defineClass(b, 0, b.length);
} catch (Exception e) {
if (ze != null) {
byte[] b = InputStreamToByteArray.convert(zf.getInputStream(ze));
Log.debug(this, " loading " + name + " from " + f.getAbsolutePath());
+ zf.close();
return defineClass(b, 0, b.length);
}
+ zf.close();
}
}
} catch (Exception e) {
if (ze != null) {
byte[] b = InputStreamToByteArray.convert(zf.getInputStream(ze));
Log.debug(this, " loading " + name + " from " + f.getAbsolutePath());
+ zf.close();
return defineClass(b, 0, b.length);
}
+ zf.close();
}
}
} catch (Exception e) {