Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 307271 - Fragments only attach to host when IU is also specified as requirement
Summary: Fragments only attach to host when IU is also specified as requirement
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-27 00:34 EDT by Alin Dreghiciu CLA
Modified: 2010-05-21 04:03 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alin Dreghiciu CLA 2010-03-27 00:34:25 EDT
Build Identifier: 

In my view it should be enough for a fragment to have the IU that it should attach to only as a host requirement. Currently that is not enough as you must also specify the host IU as a normal requirement.
If one only specifies the the host IU in teh hostRequirements but not in the requires section, the fragment it simply not getting attached.

Beside being at least strange this bug forces the host IU to be included in the solution even if in my view the fragment must get attached only if the host IU is in the final solution due to some other standard requirement.


Reproducible: Always
Comment 1 Alin Dreghiciu CLA 2010-03-29 23:17:00 EDT
Patch posted for bug #222157 also solves this bug.
Comment 2 Alin Dreghiciu CLA 2010-05-21 04:03:59 EDT
Solving bug #222157 also solved this bug.