| Summary: | Project Description is loaded although using flag GET_IF_LOADDED | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Markus Schorn <mschorn.eclipse> | ||||
| Component: | cdt-core | Assignee: | Markus Schorn <mschorn.eclipse> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Doug Schaefer <cdtdoug> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | jamesblackburn+eclipse | ||||
| Version: | 7.0 | ||||||
| Target Milestone: | 8.0 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 310795 | ||||||
| Attachments: |
|
||||||
|
Description
Markus Schorn
Interesting find. This prompts the question: what should we do if the caller has GET_IF_LOADED but the read-only description cache is out of date w.r.t. the backing store? (In reply to comment #1) > Interesting find. > > This prompts the question: what should we do if the caller has GET_IF_LOADED > but the read-only description cache is out of date w.r.t. the backing store? Tough question, I'd say it should not load the description. The reason why one would use GET_IF_LOADED is to make a quick check whether there is a project description available ready for use. For my specific use case it would also work if it gets loaded in that case. Created attachment 173219 [details]
fix
Looks good to me. checkExternalModification() explicitly invalidates the read-only desc. This change will ensure the description is only reloaded if the API caller wants it to be. Fixed in 8.0 > 20100702. *** cdt cvs genie on behalf of mschorn *** Bug 318463: Project Description is loaded although using flag GET_IF_LOADDED [*] XmlProjectDescriptionStorage.java 1.9 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/settings/model/xml/XmlProjectDescriptionStorage.java?root=Tools_Project&r1=1.8&r2=1.9 |