Commit 14cb97b
Fix Job.schedule() not rescheduling after cancel()
The aboutToRunCanceled flag was not being cleared when reschedule=true,
causing jobs to be canceled instead of scheduled. This fix moves the
flag clearing to after the early returns, ensuring it's always cleared
when actually scheduling the job.
Test verifies that Job.schedule() works correctly after cancel()
when called on a running job. This reproduces the issue where
the aboutToRunCanceled flag was not being cleared during reschedule.
Co-authored-by: laeubi <[email protected]>1 parent 70d775d commit 14cb97b
File tree
2 files changed
+41
-3
lines changed- runtime
- bundles/org.eclipse.core.jobs/src/org/eclipse/core/internal/jobs
- tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/jobs
2 files changed
+41
-3
lines changedLines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1486 | 1486 | | |
1487 | 1487 | | |
1488 | 1488 | | |
1489 | | - | |
1490 | | - | |
1491 | | - | |
1492 | 1489 | | |
1493 | 1490 | | |
1494 | 1491 | | |
| |||
1498 | 1495 | | |
1499 | 1496 | | |
1500 | 1497 | | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
1501 | 1502 | | |
1502 | 1503 | | |
1503 | 1504 | | |
| |||
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
137 | 174 | | |
0 commit comments