Commit 0db77f6
committed
[Win32] Fix deletion of read-only files not working with Java 25 #2178
With Java 25, the behavior of File#delete() has been changed for
read-only files on Windows. Previously, the operation also removed
read-only files whereas now the operation fails in that case.
LocalFile#delete() depends on the preexisting behavior. It ensures that
read-only files are also deleted.
In order to preserve the behavior with Java 25, this change makes
LocalFile#delete() explicitly remove the read-only attribute when
deleting a read-only file on WIndows.
Fixes #21781 parent 30180a8 commit 0db77f6
File tree
1 file changed
+7
-0
lines changed- resources/bundles/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/local
1 file changed
+7
-0
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
314 | 315 | | |
315 | 316 | | |
316 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
317 | 324 | | |
318 | 325 | | |
319 | 326 | | |
| |||
0 commit comments