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

Bug 338445

Summary: Remove dependency on OSGi 1.6 that came with org.osgi.framework.ServiceReference<?>
Product: [Modeling] EMF Reporter: Victor Roldan Betancort <vroldanbet>
Component: cdo.coreAssignee: Victor Roldan Betancort <vroldanbet>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: enhancement    
Priority: P3 Flags: stepper: review+
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
patch v1 none

Description Victor Roldan Betancort CLA 2011-02-28 13:34:58 EST
ServiceReference became generic in Eclipse 3.7.0. Two classes of the CDO framework were updated to remove unwaned warnings:

org.eclipse.net4j.internal.util.om.OSGiPlatform
org.eclipse.net4j.util.om.log.OSGiLoggingBridge

However, this introduced an unnecesary dependency with org.osgi.framework 1.6.

This doesn't add any benefit to the framework, and introduces an unnecessary dependency to Eclipse 3.7.x. We should stay as much as possible compatible with Eclipse 3.6.x
Comment 1 Victor Roldan Betancort CLA 2011-02-28 13:38:31 EST
Created attachment 189980 [details]
patch v1

removes use of generic wildcard. Adds some annotations to avoid warnings.
Comment 2 Eike Stepper CLA 2011-03-01 03:34:20 EST
The patch is not workspace-relative ;-(
Comment 3 Victor Roldan Betancort CLA 2011-03-01 06:06:21 EST
(In reply to comment #2)
> The patch is not workspace-relative ;-(

How did I manage to make that? :S
Comment 4 Victor Roldan Betancort CLA 2011-03-01 06:10:57 EST
Committed to TRUNK, revision 7314
Comment 5 Eike Stepper CLA 2011-06-23 03:41:20 EDT
Available in R20110608-1407