Community
Participate
Working Groups
+++ This bug was initially created as a clone of Bug #190279 +++ The Servletbridge's FrameworkLauncher uses a URLClassLoader to create the instance of Equinox and hold framework extensions. This ends up using the Jar URL Handling which does not provide anyway to close the Jar file when finished. The net result is that the file remains open until the VM is shutdown. This isn't a problem on Linux or other Unixes however on Windows you cannot delete (or rename) a file while it is still open. As a result when the Servletbridge is undeployed we don't cleanup the jar files and folders associated with resources loaded by the URLClassLoader. It would be excellent to have an alternative. A further requirement is that the alternative must provide support for addURL as the framework uses this method to add framework extensions.
This bug is to track backporting the fix done in 3.5 M3.
Created attachment 122553 [details] path for 3_4_maintenance branch
+1 for 3.4.2
The CloseableURLClassLoader class is public making this seem like new real API in a point release. I think we should make the class package private in the point release. If we want to make it public in 3.5 then we can consider doing so, but we must add the appropriate javadoc to the class if we intend others to use it. Once Simon makes this change to the patch I will +1 my review.
Created attachment 122561 [details] patch v2 After talking with Tom we decided that for 3.4.2 we don't want to add any new API so for now we'll keep the CloseableURLClassLoader package private.
+1 to latest patch for 3.4.2.
Fixed in R_3_4_maintenance branch and tagged.