Summary: | IJavaProject get and set classpath API not thread-safe | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Theodora Yeung <tyeung> |
Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> |
Status: | RESOLVED WONTFIX | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | frederic_fusier, jgarms |
Version: | 3.1.1 | ||
Target Milestone: | 3.3 RC4 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Theodora Yeung
2005-12-02 20:46:03 EST
The contract of setRawClasspath(...) is to simply set an array of classpath entries, without preserving the existing ones. It sounds like you want to add/remove classpath entries in a thread-safe way. A thread-safe add and remove would work. More importantly, everyone has to use it for it to function properly. That wouldn't be practical. Not every client wants to perform incremental add/remove to classpath. I hate considering adding a lock to (get/set)RawClasspath given possible consequences. Considering that we cannot prevent client to use the existing API setRawClasspath(...) even if we deprecated it, adding a new API would not solve the issue. No action planned. |