Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348982

Summary: [api] misuse of the generics in OperationsFactory
Product: [Eclipse Project] Equinox Reporter: Pascal Rapicault <pascal>
Component: p2Assignee: Pascal Rapicault <pascal>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.7   
Target Milestone: 3.7.1   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Very simple patch that just changes the signatures. This change is backward compatible with the previous version. pascal: iplog+

Description Pascal Rapicault CLA 2011-06-09 20:05:10 EDT
In the operationsFactory class, most of the methods take a Collection<IVersionedId> but this is not sufficient to have it take a Collection<IInstallableUnit> as input.
Instead the signatures should be Collection<? extends IVersionedId>.
Comment 1 Hugo Corbucci CLA 2011-06-10 08:38:42 EDT
Created attachment 197768 [details]
Very simple patch that just changes the signatures. This change is backward compatible with the previous version.

Very simples patch that just changes the signatures in all methods. As the change is backward compatible, it should not cause any issue with tests or previously implemented code.
Also, be careful as to update the javadocs if the results of bug 348981 get applied before this patch.
Comment 2 Pascal Rapicault CLA 2011-06-10 21:35:14 EDT
Comment on attachment 197768 [details]
Very simple patch that just changes the signatures. This change is backward compatible with the previous version.

Thx for the patch. Fix in HEAD and in 3.7.1
Comment 3 Pascal Rapicault CLA 2011-06-10 21:37:45 EDT
closing