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

Bug 412075

Summary: Restore binary compatibility with Helios
Product: [Modeling] EMFCompare Reporter: Laurent Goubet <laurent.goubet>
Component: UIAssignee: EMF Compare <emf.compare-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mikael.barbero, vroldanbet
Version: 2.1.0Keywords: helpwanted
Target Milestone: Luna M3   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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