From 4d200d1ffd09f64825f908979a3d7af0f3cb63a9 Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 18 Sep 2009 23:07:29 +0000 Subject: [PATCH] 289818 --- .../org/aspectj/weaver/bcel/ExtensibleURLClassLoader.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } -- 2.39.5