Project: JDT
Bug 68582 mass organize import modifies read only files
Reported: 2004-06-25 06:00:21 | Status: resolved fixed

1. Create a scratch project 2. create 2 files A.java and B.java 3. put unused import in both files. 4. Open file A for editing. 5. make file A read-only 6. open file B for editing. 7. Perform organize imports on the whole project 8. Observe file A is marked as dirty and if you try and save it there is a complaint.

Files changed in fix:
org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/ImportsStructure.java