Community
Participate
Working Groups
Often as developers create the next version of a bundle/plug-in in a release, they just update the minimum required version of required bunldes. For example, the debug plug-ins that require org.eclipse.core.resources claim to require the version of o.e.c.resources in 3.4 (but the debug plug-ins may still run properly with a previous version of o.e.c.resources, based on the API used). The tendency to update required bundle versions is based on what we actually test at runtime (i.e. we know we run with the latest version of a required plug-in, and we don't test with earlier versions - as those configurations of plug-ins don't even exist). API tooling should be able to determine the minimal version of a required bundle. For example, given a complete API profile we should be able to resolve all references from component A to component B, in that profile. Then, given several versions of compnonent B, we can determine which versions of component B satisfy all those references.
Investigate for 3.4
Created attachment 91101 [details] Work in progress
Created attachment 91203 [details] updated patch
Created attachment 91240 [details] updated patch Remaining patch adds support to PDE to contribute action to manifest editor. The wizard is in HEAD in API tools.
*** Bug 222123 has been marked as a duplicate of this bug. ***
Created attachment 97803 [details] zip of code that does prepreq version analysis Here's the code I removed from HEAD since we aren't using it in 3.4
Note, Also see the following versions for the following classes that had support code for analysis: ApiUseAnalyzer: 1.31 ApiToolsLabelProvider: 1.8
It should not only flag that I could use lower version but report API problems if I used API that is not available in the indicated plug-in i.e. if I need to specifiy a higher version.
(In reply to comment #8) > It should not only flag that I could use lower version but report API problems > if I used API that is not available in the indicated plug-in i.e. if I need to > specifiy a higher version. Yes, there is a M3 plan item for this, but not sure we have a bug for it yet: "Flag when new API is used in a required bunlde that requires the version range to be incremented/updated (i.e. using a new API, so lower bound needs updating)"
*** Bug 218664 has been marked as a duplicate of this bug. ***
Looks similar to bug 255771.
*** Bug 365397 has been marked as a duplicate of this bug. ***