Bug 95288

Summary: [model] CreatePackageFragmentOperation runs with wrong ISchedulingRule
Product: [Eclipse Project] JDT Reporter: Daniel Berg <danberg>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: 3.0   
Target Milestone: 3.4 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix and regression test none

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.