Bug 127562 - Incorrect scheduling rule for project.setDescription
Summary: Incorrect scheduling rule for project.setDescription
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.1.2   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: 3.2 M5   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 216732
  Show dependency tree
 
Reported: 2006-02-13 16:17 EST by John Arthorne CLA
Modified: 2008-01-28 05:26 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2006-02-13 16:17:13 EST
Build: I20060213-0800

IProject#setDescription says it uses IResourceRuleFactory#modifyRule.  However, modifyRule for a project is the project, and setting the project description requires IWorkspaceRoot (because nature config can happen, and we never specified what nature config was allowed to touch).  The modifyRule for project needs to be changed to IWorkspaceRoot.

java.lang.IllegalArgumentException: Attempted to beginRule: R/, does not match outer scope rule: MultiRule[P/org.eclipse.ui.tests,P/org.eclipse.ui.tests.harness,P/org.eclipse.ui.tests.performance]
at org.eclipse.core.runtime.Assert.isLegal(Assert.java:58)
at org.eclipse.core.internal.jobs.ThreadJob.illegalPush(ThreadJob.java:116)
at org.eclipse.core.internal.jobs.ThreadJob.push(ThreadJob.java:225)
at org.eclipse.core.internal.jobs.ImplicitJobs.begin(ImplicitJobs.java:80)
at org.eclipse.core.internal.jobs.JobManager.beginRule(JobManager.java:218)
at org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:96)
at org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:1681)
at org.eclipse.core.internal.resources.Project.setDescription(Project.java:961)
Comment 1 John Arthorne CLA 2006-02-13 17:56:57 EST
Fix released.