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

Bug 234551

Summary: [implementation] Potential race condition when saving an ICompilationUnit
Product: [Eclipse Project] JDT Reporter: Jerome Lanneluc <jerome_lanneluc>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 3.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Jerome Lanneluc CLA 2008-05-29 04:22:59 EDT
I20080527-2000

As shown in the stack trace from bug 234307, when calling CompilationUnit.save(...) we ensure that the file exists (by opening the Java element). However this file might be removed when we enter IBuffer.save(...).

We should protect the code in Openable.save(...) by using a scheduling rule.
Comment 1 Eclipse Genie CLA 2019-10-09 03:07:47 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.