Community
Participate
Working Groups
When a full build is executed, (I suppose) PDE is loading the JARs of the target platform. But somehow the file handles of the JARs are not released sometimes. So deleting or updating these JARs during runtime of Eclipse is not possible. Tests I did: - removing some Target definitions from the TP: the files are obviously not locked anymore - changing the TP during runtime: the files are not locked - analyzed open file handles with ProcessExplorer and Handle.exe (by Sysinternals): the file handles are opened during build phase and sometimes not closed afterwards. This issue didn't occur in 4.9. Since this happens infrequently, I assume it's a concurrency issue (?).
After further tests: - Restarting the IDE doesn't help. The file lock persists most of the times. - same problem with 2018-12 (4.10) - the issue doen't occur in 2018-09 (4.9)
Please provide simple project with simple example of the target platform that shows the problem.
Created attachment 286072 [details] Example Workspace As mentioned the lock doesn't always occur. Restarting the IDE and reloading the target platform can provoke the issue.
As it turned out it's not PDE's fault that JAR file handles are sometimes not released. It was a problem inside JDT
As it turned out, it is not PDE's fault that JAR file handles are sometimes not released. It was a problem inside JDT: https://bugs.eclipse.org/bugs/show_bug.cgi?id=567661. This problem persisted from 4.10 to 4.18. It was fixed with release 4.19. Closed.
*** This bug has been marked as a duplicate of bug 567661 ***