Bug 6165 - handle read-only class path file in a graceful way
Summary: handle read-only class path file in a graceful way
Status: RESOLVED DUPLICATE of bug 13905
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: 2.0 M6   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-21 10:19 EST by Erich Gamma CLA
Modified: 2002-04-23 08:41 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erich Gamma CLA 2001-11-21 10:19:31 EST
JDT Silently looses changes to readonly .classpath file.

this isn't a new problem, we should address this in 2.0.

CORE should throw an exception in this case.
Comment 1 Philipe Mulet CLA 2001-11-26 13:01:47 EST
What about the complaint against the JavaModel notifying the impossibility of 
changing the content of a read-only file (bug 4210) ? 

We should be consistent and either always fail or always ignore. Failing seems 
appropriate and goes in the direction suggested by this bug report.
Comment 2 Erich Gamma CLA 2001-11-26 13:28:38 EST
I expect some changes with regard to handling read-only files. This is 
triggered by requirement to support pessimistic VCMs. These systems have their 
files read-only when they are not checked out.
Comment 3 Erich Gamma CLA 2002-02-13 01:46:19 EST
FYI, the API call to use before modifying a file is validateEdit provided by 
the Workspace.
Comment 4 Philipe Mulet CLA 2002-04-23 08:41:48 EDT
Fixed along with bug 13905

*** This bug has been marked as a duplicate of 13905 ***