[bnd] 22/22: Add implement-missing-methods.patch

Markus Koschany apo-guest at moszumanska.debian.org
Sat May 16 22:35:41 UTC 2015


This is an automated email from the git hooks/post-receive script.

apo-guest pushed a commit to branch experimental
in repository bnd.

commit 13edd2d5e1fec38a8ee346d4371a891a7ffe4cfd
Author: Markus Koschany <apo at gambaru.de>
Date:   Fri May 15 15:23:52 2015 +0200

    Add implement-missing-methods.patch
---
 debian/patches/implement-missing-methods.patch | 67 ++++++++++++++++++++++++++
 debian/patches/series                          |  1 +
 2 files changed, 68 insertions(+)

diff --git a/debian/patches/implement-missing-methods.patch b/debian/patches/implement-missing-methods.patch
new file mode 100644
index 0000000..3cc8bfa
--- /dev/null
+++ b/debian/patches/implement-missing-methods.patch
@@ -0,0 +1,67 @@
+From: Markus Koschany <apo at gambaru.de>
+Date: Fri, 15 May 2015 15:23:31 +0200
+Subject: implement missing methods
+
+---
+ biz.aQute.launcher/src/aQute/launcher/Launcher.java           |  3 ++-
+ biz.aQute.launcher/src/aQute/launcher/minifw/Context.java     |  7 +++++++
+ .../src/aQute/launcher/minifw/MiniFramework.java              | 11 +++++++++++
+ 3 files changed, 20 insertions(+), 1 deletion(-)
+
+diff --git a/biz.aQute.launcher/src/aQute/launcher/Launcher.java b/biz.aQute.launcher/src/aQute/launcher/Launcher.java
+index 221c412..3cb3a5e 100644
+--- a/biz.aQute.launcher/src/aQute/launcher/Launcher.java
++++ b/biz.aQute.launcher/src/aQute/launcher/Launcher.java
+@@ -580,7 +580,8 @@ public class Launcher implements ServiceListener {
+ 			Class< ? > clazz = loader.loadClass(implementation);
+ 			FrameworkFactory factory = (FrameworkFactory) clazz.newInstance();
+ 			trace("Framework factory %s", factory);
+-			systemBundle = factory.newFramework(p);
++			Map<String,String> configuration = (Map) p;
++			systemBundle = factory.newFramework(configuration);
+ 			trace("framework instance %s", systemBundle);
+ 		} else {
+ 			trace("using embedded mini framework because we were told not to use META-INF/services");
+diff --git a/biz.aQute.launcher/src/aQute/launcher/minifw/Context.java b/biz.aQute.launcher/src/aQute/launcher/minifw/Context.java
+index 8c5111f..b16bd13 100644
+--- a/biz.aQute.launcher/src/aQute/launcher/minifw/Context.java
++++ b/biz.aQute.launcher/src/aQute/launcher/minifw/Context.java
+@@ -370,4 +370,11 @@ public class Context extends URLClassLoader implements Bundle, BundleContext, Bu
+ 		// TODO Auto-generated method stub
+ 		return null;
+ 	}
++
++    public <S> ServiceObjects<S> getServiceObjects(ServiceReference<S> reference) {
++        return null;
++    }
++    public <S> ServiceRegistration<S> registerService(Class<S> clazz, ServiceFactory<S> factory, Dictionary<String, ?> properties) {
++        return null;
++    }
+ }
+diff --git a/biz.aQute.launcher/src/aQute/launcher/minifw/MiniFramework.java b/biz.aQute.launcher/src/aQute/launcher/minifw/MiniFramework.java
+index 67e9348..8178409 100644
+--- a/biz.aQute.launcher/src/aQute/launcher/minifw/MiniFramework.java
++++ b/biz.aQute.launcher/src/aQute/launcher/minifw/MiniFramework.java
+@@ -28,6 +28,9 @@ public class MiniFramework implements Framework, Bundle, BundleContext {
+ 		state = Bundle.ACTIVE;
+ 	}
+ 
++	public void init(FrameworkListener... listeners) throws BundleException {
++    }
++
+ 	public FrameworkEvent waitForStop(long timeout) throws InterruptedException {
+ 		long deadline = System.currentTimeMillis() + timeout;
+ 
+@@ -325,4 +328,12 @@ public class MiniFramework implements Framework, Bundle, BundleContext {
+ 		// TODO Auto-generated method stub
+ 		return null;
+ 	}
++
++	public <S> ServiceObjects<S> getServiceObjects(ServiceReference<S> reference) {
++		return null;
++	}
++
++	public <S> ServiceRegistration<S> registerService(Class<S> clazz, ServiceFactory<S> factory, Dictionary<String, ?> properties) {
++		return null;
++    }
+ }
diff --git a/debian/patches/series b/debian/patches/series
index bcea885..f0288d9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -10,3 +10,4 @@ ant-contrib.patch
 findbugs.patch
 embedded-repo.patch
 FTBFS.patch
+implement-missing-methods.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/bnd.git



More information about the pkg-java-commits mailing list