Bug 23348 Quickfix ignores read-only state [quick fix]
Build: 20020903 1. Create a new Java project. 2. Create a new Java file, A.java public class A { public void foo() { ba(); } public void bar() { } } 3. Save the file. 4. Mark it read-only. 5. Right click the error in the task list and select "Quick- fix..." 6. Select either of the options, the edits are made (in a read-only file!).
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/CorrectionMarkerResolutionGenerator.java
public static class CorrectionMarkerResolution implements IMarkerResolution {
	
		private IEditorInput fEditorInput;
		private ChangeCorrectionProposal fProposal;
	
		/**
		 * Constructor for CorrectionMarkerResolution.
		 */
		public CorrectionMarkerResolution(IEditorInput editorInput, ChangeCorrectionProposal proposal) {
			fEditorInput= editorInput;