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

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