Blame SOURCES/0002-Allow-bootstrapping-against-OSGi-Core-R6.patch

e1005f
From 006d5e833eae44aab2514918acfe20f8ab3992d2 Mon Sep 17 00:00:00 2001
e1005f
From: Mat Booth <mat.booth@redhat.com>
e1005f
Date: Tue, 12 Mar 2019 15:12:37 +0000
e1005f
Subject: [PATCH 2/4] Allow bootstrapping against OSGi Core R6
e1005f
e1005f
---
e1005f
 .../http/servlet/internal/HttpServiceRuntimeImpl.java     | 8 ++++++--
e1005f
 1 file changed, 6 insertions(+), 2 deletions(-)
e1005f
e1005f
diff --git a/rt.equinox.bundles/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/HttpServiceRuntimeImpl.java b/rt.equinox.bundles/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/HttpServiceRuntimeImpl.java
e1005f
index 8d07030b8..530f5bb11 100644
e1005f
--- a/rt.equinox.bundles/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/HttpServiceRuntimeImpl.java
e1005f
+++ b/rt.equinox.bundles/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/HttpServiceRuntimeImpl.java
e1005f
@@ -1341,8 +1341,12 @@ public class HttpServiceRuntimeImpl
e1005f
 		@Override
e1005f
 		public Void call() {
e1005f
 			try {
e1005f
-				Dictionary<String,Object> properties = getHsrRegistration().getReference().getProperties();
e1005f
-				properties.put(Constants.SERVICE_CHANGECOUNT, getServiceChangecount());
e1005f
+				Dictionary<String,Object> properties = new Hashtable<String,Object>();
e1005f
+				String[] keys = getHsrRegistration().getReference().getPropertyKeys();
e1005f
+				for (String key : keys) {
e1005f
+					properties.put(key, getHsrRegistration().getReference().getProperty(key));
e1005f
+				}
e1005f
+				properties.put("service.changecount", getServiceChangecount());
e1005f
 				getHsrRegistration().setProperties(properties);
e1005f
 				return null;
e1005f
 			}
e1005f
-- 
e1005f
2.26.2
e1005f