| Summary: | IWorkspace.run() javadoc says it will fail but it doesn't when no scheduling rule is supplied | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Tomasz Zarna <tomasz.zarna> | ||||
| Component: | Resources | Assignee: | Szymon Brandys <Szymon.Brandys> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | jamesblackburn+eclipse, remy.suen | ||||
| Version: | 3.6 | ||||||
| Target Milestone: | 3.7 M1 | ||||||
| Hardware: | PC | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 311526 | ||||||
| Attachments: |
|
||||||
|
Description
Tomasz Zarna
Certainly the JavaDoc you're referring to here looks wrong to me: "If no scheduling rule is supplied, then any attempt to change resources will fail" Certainly when batching workspace change events in a WorkspaceJob, the scheduling rule is set to null by default: see InternalWorkspaceJob#run. From what I can see the JobManager ignores a null rule for scheduling and is happy for it begin()/end() it. (In reply to comment #1) Indeed. This should be fixed. Created attachment 175713 [details]
Fix v01
The javadoc is fixed in HEAD. . |