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

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