From: aclement Date: Fri, 18 Sep 2009 23:07:29 +0000 (+0000) Subject: 289818 X-Git-Tag: V1_6_6~27 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4d200d1ffd09f64825f908979a3d7af0f3cb63a9;p=aspectj.git 289818 --- diff --git a/weaver/src/org/aspectj/weaver/bcel/ExtensibleURLClassLoader.java b/weaver/src/org/aspectj/weaver/bcel/ExtensibleURLClassLoader.java index 3ee58a7d6..b96f6074c 100644 --- a/weaver/src/org/aspectj/weaver/bcel/ExtensibleURLClassLoader.java +++ b/weaver/src/org/aspectj/weaver/bcel/ExtensibleURLClassLoader.java @@ -69,7 +69,11 @@ public abstract class ExtensibleURLClassLoader extends URLClassLoader { byte[] b = null; ClassPathManager.ClassFile classFile = classPath.find(UnresolvedType.forName(name)); if (classFile != null) { - b = FileUtil.readAsByteArray(classFile.getInputStream()); + try { + b = FileUtil.readAsByteArray(classFile.getInputStream()); + } finally { + classFile.close(); + } } return b; }