Browse Source

Fix Bug 473555 - File descriptors leak in ExtensibleURLClassLoader

tags/V1_8_7
Andy Clement 8 years ago
parent
commit
9f19c3d57a

+ 8
- 0
weaver/src/org/aspectj/weaver/bcel/ExtensibleURLClassLoader.java View File

* Contributors: * Contributors:
* Matthew Webster, Adrian Colyer, * Matthew Webster, Adrian Colyer,
* Martin Lippert initial implementation * Martin Lippert initial implementation
* Andy Clement
* Roy Varghese - Bug 473555
* ******************************************************************/ * ******************************************************************/


package org.aspectj.weaver.bcel; package org.aspectj.weaver.bcel;
int offset = className.lastIndexOf('.'); int offset = className.lastIndexOf('.');
return (offset == -1) ? null : className.substring(0, offset); return (offset == -1) ? null : className.substring(0, offset);
} }
@Override
public void close() throws IOException {
super.close();
classPath.closeArchives();
}


} }

Loading…
Cancel
Save