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

ebourg-guest pushed a commit to branch master
in repository libisnativec-java.

commit 6a8018c366abffe18a1a878e3835fc33ba1b2a94
Author: Emmanuel Bourg <[email protected]>
Date:   Fri Mar 9 10:26:16 2018 +0100

    Fixed the build failure with Java 9 (Closes: #874637)
---
 debian/changelog                            |  7 +++++++
 debian/patches/01-java9-compatibility.patch | 23 +++++++++++++++++++++++
 debian/patches/series                       |  1 +
 3 files changed, 31 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 8143058..21a60d7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+libisnativec-java (5.3.20100629+fix-2) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * Fixed the build failure with Java 9 (Closes: #874637)
+
+ -- Emmanuel Bourg <[email protected]>  Fri, 09 Mar 2018 10:25:27 +0100
+
 libisnativec-java (5.3.20100629+fix-1) unstable; urgency=low
 
   * Team upload.
diff --git a/debian/patches/01-java9-compatibility.patch 
b/debian/patches/01-java9-compatibility.patch
new file mode 100644
index 0000000..a134874
--- /dev/null
+++ b/debian/patches/01-java9-compatibility.patch
@@ -0,0 +1,23 @@
+Description: Fixes the compatibility issues with Java 9
+Author: Emmanuel Bourg <[email protected]>
+Forwarded: no
+--- a/src/de/intarsys/nativec/api/NativeInterface.java
++++ b/src/de/intarsys/nativec/api/NativeInterface.java
+@@ -31,7 +31,7 @@
+ 
+ import java.util.Iterator;
+ 
+-import sun.misc.Service;
++import java.util.ServiceLoader;
+ 
+ /**
+  * Access the VM singleton for {@link INativeInterface}.
+@@ -81,7 +81,7 @@
+               if (loader == null) {
+                       loader = NativeInterface.class.getClassLoader();
+               }
+-              Iterator ps = Service.providers(INativeInterface.class, loader);
++              Iterator ps = ServiceLoader.load(INativeInterface.class, 
loader).iterator();
+               if (ps.hasNext()) {
+                       try {
+                               return (INativeInterface) ps.next();
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..12bc5e0
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+01-java9-compatibility.patch

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

_______________________________________________
pkg-java-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to