Bug 412075 - Restore binary compatibility with Helios
Summary: Restore binary compatibility with Helios
Status: RESOLVED FIXED
Alias: None
Product: EMFCompare
Classification: Modeling
Component: UI (show other bugs)
Version: 2.1.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: Luna M3   Edit
Assignee: EMF Compare CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2013-07-02 05:17 EDT by Laurent Goubet CLA
Modified: 2013-10-03 08:06 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Goubet CLA 2013-07-02 05:17:16 EDT
EMF Compare makes use of org.osgi.framework.Version.compareTo(Version) in order to check for the API it can use. Calls to this method will fail in java.lang.NoSuchMethodError: org.osgi.framework.Version.compareTo(Lorg/osgi/framework/Version;)I for Helios and prior versions since "compareTo" changed signature from "compareTo(Object)" (Helios, OSGi framework 1.5) to "compareTo(Version)" (Indigo, OSGi framework version 1.6).

We should be using our own comparison routine for the bundle versions in order to avoid this issue.
Comment 1 Laurent Goubet CLA 2013-07-22 07:04:26 EDT
Best way to tackle this would be to copy/paster Version.compareTo() in our own code, and call that directly.
Comment 2 Mikaël Barbero CLA 2013-10-03 08:06:10 EDT
Fixed in cf6560ec0244e93e36c968e5f149f82902c97c62 for 2.1 branch
Fixed in e7d42794195d6c67101a026d624a32616df554ed for master branch