eclipse-jdt / eclipse.jdt.core

Eclipse Public License 2.0
164 stars 130 forks source link

Fix BatchCompilerTest - ZipFile "used by another process" on win #2766 #2820

Closed jukzi closed 2 months ago

jukzi commented 2 months ago

https://github.com/eclipse-jdt/eclipse.jdt.core/issues/2766

Works around error in JDK which forgets to close Jar when System.getSecurityManager()==null

As workaround trigger a GC to make a associated Cleaner Run for the ZipFile no longer referenced.