Community
Participate
Working Groups
3.3 M6 1. Plug-in com.ibm.z requires com.ibm.x.y 2. com.ibm.x.y has a fragment com.ibm.x.y.fragment.win32 3. The Plug-in Dependencies in the Package explorer correctly shows 2 project references (1 reference to com.ibm.x.y, 1 reference to com.ibm.x.y.fragment.win32) 4. When loading a pre-defined target (Preferences > Plug-in Development > Target Platform), the reference to com.ibm.x.y.fragment.win32 is removed from the Plug-in Dependencies. This results in compile errors in com.ibm.z.
Created attachment 68078 [details] Manifest for com.ibm.x.y.fragment.win32
Jerome, what is this "pre-defined target"?
to clarify comment 2: does the pre-defined target contain such a fragment? after loading that target, is the *.win32 fragment checked on the Target Platform preference page?
Raising priority so it doesn't get lost. This is an important scenario.
Can we fix it for 3.3 ?
(In reply to comment #3) > to clarify comment 2: > > does the pre-defined target contain such a fragment? > after loading that target, is the *.win32 fragment checked on the Target > Platform preference page? > Indeed com.ibm.x.y.fragment.win32 is not listed. However com.ibm.x.y is not listed either and it is still referenced in the Plug-in Dependencies.
oh I see. They are not listed on the Target Platform pref page, but they are both in your workspace. Fine then. I suspect it's a general target switching thing (bug 183260), which is already fixed. I will confirm though.
Yes, I verified that the problem is already fixed in M7 (bug 183260). For reference, here is a scenario that fails on M6 but passes on M7: 1. Fresh workspace 2. Create a fragment (com.example.fragment) project. Set its host to org.eclipse.swt 3.3.0 3. Create a new Hello world (com.example.abc) plug-in project. Note how com.example.fragment is on its classpath. Good. 4. Go to the Target Platform preference page and change the location to that of another Eclipse installation. Press OK. On M6, com.example.abc loses its reference to com.example.fragment On M7, com.example.abc retains its reference to com.example.fragment *** This bug has been marked as a duplicate of bug 183260 ***