aboutsummaryrefslogtreecommitdiffstats
path: root/weaver/src
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2015-08-05 12:33:31 -0700
committerAndy Clement <aclement@pivotal.io>2015-08-05 12:33:31 -0700
commit9f19c3d57acfe94b07fcb060abef1ad0e63fb4eb (patch)
tree68843683208a8681ba08fda206dd7e0ec54d1121 /weaver/src
parent451a29f0fd2e55e7e2c1e54a6ae9d01a42b7b128 (diff)
downloadaspectj-9f19c3d57acfe94b07fcb060abef1ad0e63fb4eb.tar.gz
aspectj-9f19c3d57acfe94b07fcb060abef1ad0e63fb4eb.zip
Fix Bug 473555 - File descriptors leak in ExtensibleURLClassLoader
Diffstat (limited to 'weaver/src')
-rw-r--r--weaver/src/org/aspectj/weaver/bcel/ExtensibleURLClassLoader.java8
1 files changed, 8 insertions, 0 deletions
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();
+ }
}