From: Markus Koschany <apo@debian.org>
Date: Sat, 19 Jan 2019 16:54:20 +0100
Subject: osgi-update

Compatibility patch with Debian's version of OSGi.
---
 .../netbinox/src/org/netbeans/modules/netbinox/Netbinox.java  | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/platform/netbinox/src/org/netbeans/modules/netbinox/Netbinox.java b/platform/netbinox/src/org/netbeans/modules/netbinox/Netbinox.java
index a6a1dc1..ce68825 100644
--- a/platform/netbinox/src/org/netbeans/modules/netbinox/Netbinox.java
+++ b/platform/netbinox/src/org/netbeans/modules/netbinox/Netbinox.java
@@ -38,6 +38,9 @@ import org.osgi.framework.InvalidSyntaxException;
 import org.osgi.framework.ServiceListener;
 import org.osgi.framework.ServiceReference;
 import org.osgi.framework.ServiceRegistration;
+import org.osgi.framework.ServiceObjects;
+import org.osgi.framework.ServiceFactory;
+import java.lang.UnsupportedOperationException;
 
 /**
  *
@@ -216,5 +219,13 @@ class Netbinox extends Equinox {
         public void addBundleListener(BundleListener bl) {
             delegate.addBundleListener(bl);
         }
+        @Override
+        public <S> ServiceObjects<S> getServiceObjects(ServiceReference<S> refer) {
+            throw new UnsupportedOperationException();
+        }
+        @Override
+        public <S> ServiceRegistration<S> registerService(Class<S> clazz, ServiceFactory<S> factory, Dictionary<String,?> dictio) {
+            throw new UnsupportedOperationException();
+        }
     } // end of Context
 }
