Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2010-09-27 16:48:21 -0400
committerPawel Piech2010-09-27 16:48:21 -0400
commit159c91c678868e6b354b9b38e51146837d6b901e (patch)
tree47490683e9199d9ea39d6ef9bf51349190d9ead8 /dsf/org.eclipse.cdt.dsf
parentf9418dae7d6a7699baf3fa871b5631fb2f2578f8 (diff)
downloadorg.eclipse.cdt-159c91c678868e6b354b9b38e51146837d6b901e.tar.gz
org.eclipse.cdt-159c91c678868e6b354b9b38e51146837d6b901e.tar.xz
org.eclipse.cdt-159c91c678868e6b354b9b38e51146837d6b901e.zip
Bug 326233 - DsfSession doesn't compile against 3.7
Diffstat (limited to 'dsf/org.eclipse.cdt.dsf')
-rw-r--r--dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/service/DsfSession.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/service/DsfSession.java b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/service/DsfSession.java
index 2108fa99b3..ff7dbf2af5 100644
--- a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/service/DsfSession.java
+++ b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/service/DsfSession.java
@@ -459,7 +459,12 @@ public class DsfSession
@ThreadSafe
public int hashCode() { return fId.hashCode(); }
- private void doDispatchEvent(Object event, Dictionary<?,?> serviceProperties) {
+ private void doDispatchEvent(Object event, Dictionary<?,?> _serviceProperties) {
+ // Need to cast to dictionary with String keys to satisfy OSGI in platform 3.7.
+ // Bug 326233
+ @SuppressWarnings("unchecked")
+ Dictionary<String,?> serviceProperties = (Dictionary<String,?>)_serviceProperties;
+
// Build a list of listeners;
SortedMap<ListenerEntry,List<Method>> listeners = new TreeMap<ListenerEntry,List<Method>>(new Comparator<ListenerEntry>() {
public int compare(ListenerEntry o1, ListenerEntry o2) {

Back to the top