Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2006-08-10 11:56:59 -0400
committerThomas Watson2006-08-10 11:56:59 -0400
commit718486e706a7674eb03ca21e45751f9793c4b82a (patch)
tree7009a9bd7dad29138cd8deb49b85193ab9dae60c
parent7e266514f1d9bd5574ecae1179b573ef9c725b3e (diff)
downloadrt.equinox.framework-718486e706a7674eb03ca21e45751f9793c4b82a.tar.gz
rt.equinox.framework-718486e706a7674eb03ca21e45751f9793c4b82a.tar.xz
rt.equinox.framework-718486e706a7674eb03ca21e45751f9793c4b82a.zip
Bug 147441 ServiceTracker does not pay attention to service ranking changes
-rw-r--r--bundles/org.eclipse.osgi/META-INF/MANIFEST.MF2
-rw-r--r--bundles/org.eclipse.osgi/osgi/src/org/osgi/util/tracker/ServiceTracker.java7
2 files changed, 6 insertions, 3 deletions
diff --git a/bundles/org.eclipse.osgi/META-INF/MANIFEST.MF b/bundles/org.eclipse.osgi/META-INF/MANIFEST.MF
index 30f0e7983..d01ed498e 100644
--- a/bundles/org.eclipse.osgi/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.osgi/META-INF/MANIFEST.MF
@@ -20,7 +20,7 @@ Export-Package: org.eclipse.osgi.event;version="1.0",
org.osgi.service.permissionadmin;version="1.2",
org.osgi.service.startlevel;version="1.0",
org.osgi.service.url;version="1.0",
- org.osgi.util.tracker;version="1.3.1",
+ org.osgi.util.tracker;version="1.3.2",
org.eclipse.core.runtime.adaptor;x-friends:="org.eclipse.core.runtime",
org.eclipse.core.runtime.internal.adaptor;x-internal:=true,
org.eclipse.core.runtime.internal.stats;x-friends:="org.eclipse.core.runtime",
diff --git a/bundles/org.eclipse.osgi/osgi/src/org/osgi/util/tracker/ServiceTracker.java b/bundles/org.eclipse.osgi/osgi/src/org/osgi/util/tracker/ServiceTracker.java
index a82abadfa..a2683527f 100644
--- a/bundles/org.eclipse.osgi/osgi/src/org/osgi/util/tracker/ServiceTracker.java
+++ b/bundles/org.eclipse.osgi/osgi/src/org/osgi/util/tracker/ServiceTracker.java
@@ -1,5 +1,5 @@
/*
- * $Header: /cvshome/build/org.osgi.util.tracker/src/org/osgi/util/tracker/ServiceTracker.java,v 1.17 2005/11/15 22:05:30 hargrave Exp $
+ * $Header: /cvshome/build/org.osgi.util.tracker/src/org/osgi/util/tracker/ServiceTracker.java,v 1.19 2006/06/15 20:44:05 hargrave Exp $
*
* Copyright (c) OSGi Alliance (2000, 2005). All Rights Reserved.
*
@@ -33,7 +33,7 @@ import org.osgi.framework.*;
* <code>getServices</code> methods can be called to get the service objects
* for the tracked service.
*
- * @version $Revision: 1.17 $
+ * @version $Revision: 1.19 $
*/
public class ServiceTracker implements ServiceTrackerCustomizer {
/* set this to true to compile in debug messages */
@@ -963,6 +963,9 @@ public class ServiceTracker implements ServiceTrackerCustomizer {
System.out
.println("ServiceTracker.Tracked.track[modified]: " + reference); //$NON-NLS-1$
}
+ synchronized (this) {
+ modified(); /* increment modification count */
+ }
/* Call customizer outside of synchronized region */
customizer.modifiedService(reference, object);
/*

Back to the top