From 9f19c3d57acfe94b07fcb060abef1ad0e63fb4eb Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Wed, 5 Aug 2015 12:33:31 -0700 Subject: [PATCH] Fix Bug 473555 - File descriptors leak in ExtensibleURLClassLoader --- .../org/aspectj/weaver/bcel/ExtensibleURLClassLoader.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/weaver/src/org/aspectj/weaver/bcel/ExtensibleURLClassLoader.java b/weaver/src/org/aspectj/weaver/bcel/ExtensibleURLClassLoader.java index 261621495..3480b8172 100644 --- a/weaver/src/org/aspectj/weaver/bcel/ExtensibleURLClassLoader.java +++ b/weaver/src/org/aspectj/weaver/bcel/ExtensibleURLClassLoader.java @@ -9,6 +9,8 @@ * Contributors: * Matthew Webster, Adrian Colyer, * Martin Lippert initial implementation + * Andy Clement + * Roy Varghese - Bug 473555 * ******************************************************************/ package org.aspectj.weaver.bcel; @@ -101,5 +103,11 @@ public abstract class ExtensibleURLClassLoader extends URLClassLoader { int offset = className.lastIndexOf('.'); return (offset == -1) ? null : className.substring(0, offset); } + + @Override + public void close() throws IOException { + super.close(); + classPath.closeArchives(); + } } -- 2.39.5