Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 511298

Summary: JAR file handle kept open
Product: [Eclipse Project] JDT Reporter: Frank Benoit <frank.rene.benoit>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: loskutov
Version: 4.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug

Description Frank Benoit CLA 2017-01-30 06:56:04 EST
I have a project, that includes a .jar file.
And I have a tool, that re-creates this jar file. Hence it needs to delete the existing one and replace it with the new.

But sometimes, Eclipse keeps the file handle to the jar file open, so the tool is blocked. Then the handle just stays open. Even closing/reopening the Java project does not close the handle.
With the plugin Infinitest, this gets worse. But I saw this behavior also with Infinitest de-installed.

Could someone check, that the handle is closed properly after reading from it?
Comment 1 Andrey Loskutov CLA 2017-01-30 16:50:07 EST
Don't beat me if I'm wrong, last time I've struggled with open file descriptors it was the indexer who kept them open for a while. Is this still the case may be?
Comment 2 Eclipse Genie CLA 2019-09-11 12:56:16 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.