This is an automated email from the git hooks/post-receive script. ebourg-guest pushed a commit to branch master in repository libjna-java.
commit ac2199212190be1b3421115ea81330be947fb43c Author: Emmanuel Bourg <[email protected]> Date: Wed Nov 29 17:19:17 2017 +0100 Fixed the build failure with Java 9 (Closes: #874649) --- debian/changelog | 7 +++++++ debian/patches/15-java9-compatibility.patch | 22 ++++++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 30 insertions(+) diff --git a/debian/changelog b/debian/changelog index f6951cd..d491d28 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +libjna-java (4.5.0-2) UNRELEASED; urgency=medium + + * Team upload. + * Fixed the build failure with Java 9 (Closes: #874649) + + -- Emmanuel Bourg <[email protected]> Wed, 29 Nov 2017 17:16:45 +0100 + libjna-java (4.5.0-1) unstable; urgency=medium * Team upload. diff --git a/debian/patches/15-java9-compatibility.patch b/debian/patches/15-java9-compatibility.patch new file mode 100644 index 0000000..84dc057 --- /dev/null +++ b/debian/patches/15-java9-compatibility.patch @@ -0,0 +1,22 @@ +Description: Fixes the build failure with Java 9 +Author: Emmanuel Bourg <[email protected]> +Bug: https://github.com/java-native-access/jna/issues/856 +Bug-Debian: https://bugs.debian.org/874649 +--- a/contrib/platform/src/com/sun/jna/platform/WindowUtils.java ++++ b/contrib/platform/src/com/sun/jna/platform/WindowUtils.java +@@ -1389,14 +1389,7 @@ + whenDisplayable(w, new Runnable() { + @Override + public void run() { +- Object peer = w.getPeer(); +- try { +- Class<?> cls = peer.getClass(); +- Method m = cls.getMethod("setAlpha", new Class[]{ float.class }); +- m.invoke(peer, Float.valueOf(alpha)); +- } +- catch (Exception e) { +- } ++ w.setOpacity(alpha); + } + }); + } diff --git a/debian/patches/series b/debian/patches/series index 53812bd..8c1e29f 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -7,3 +7,4 @@ 12-structure-backward-compatibility.patch 13-reproducible-javadoc.patch 14-rename-native-library.patch +15-java9-compatibility.patch -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libjna-java.git _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

