Bug 95288 - [model] CreatePackageFragmentOperation runs with wrong ISchedulingRule
Summary: [model] CreatePackageFragmentOperation runs with wrong ISchedulingRule
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.4 M1   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-14 23:47 EDT by Daniel Berg CLA
Modified: 2007-08-03 10:48 EDT (History)
0 users

See Also:


Attachments
Proposed fix and regression test (3.33 KB, patch)
2007-07-04 06:36 EDT, Jerome Lanneluc CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Berg CLA 2005-05-14 23:47:59 EDT
I have an operation that creates a compilation unit under a given package.  I
run this operation using the source folder as the scheduling rule.  The problem
is that I have to call PackageFragmentRoot#createPackageFragment(...) which runs
the CreatePackageFragmentOperation under a scheduling rule of WorkspaceRoot. 
This causes an IllegalArgumentException to be thrown.  This means I have to
change my operation to run with the WorkspaceRoot as the scheduling rule.  I see
no reason why the creation of a PackageFragment would need a scheduling rule
broader than the PackageFragmentRoot under which it is being created.
Comment 1 Jerome Lanneluc CLA 2007-06-22 07:31:29 EDT
Problem still exists with 3.3RC4
Comment 2 Jerome Lanneluc CLA 2007-07-04 06:36:32 EDT
Created attachment 73019 [details]
Proposed fix and regression test
Comment 3 Jerome Lanneluc CLA 2007-07-04 10:10:36 EDT
Fix and test released for 3.4M1 in HEAD.
Comment 4 Frederic Fusier CLA 2007-08-03 10:48:06 EDT
Verified (running added test) for 3.4M1 using build I20070802-0800.