Community
Participate
Working Groups
When I was reviewing a patch attached to bug 311526 I came across IWorkspace.run() javadoc which confused me. The doc says the method will fail when no scheduling rule is supplied and an attempt to change resources is done. But this is exactly what happens in James' patch from bug 311526. He wraps the import projects op (which definitely changes resources) in a WorkspaceModifyOperation with a null rule, so I would expect it to fail. Question: is the patch wrong or is the javadoc outdated?
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.
.