[geogebra] 03/03: Fix crash with OpenJDK 9.

Giovanni Mascellani gio at moszumanska.debian.org
Sun Apr 29 15:06:51 BST 2018


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

gio pushed a commit to branch master
in repository geogebra.

commit 3510c40fc5fa8eea1159c4908b45d91b292a5f9b
Author: Giovanni Mascellani <gio at debian.org>
Date:   Sun Apr 29 16:06:35 2018 +0200

    Fix crash with OpenJDK 9.
---
 debian/changelog                                    | 1 +
 debian/patches/{0006-Temp.patch => fix_addURL.path} | 8 +++++++-
 debian/patches/series                               | 2 +-
 3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 5c14479..7cd515a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 geogebra (4.0.34.0+dfsg1-5) UNRELEASED; urgency=medium
 
   * Remove some leftovers of TopGit, which is officially not used anymore.
+  * Fix crash with OpenJDK 9. (closes: #882550, LP: #1761977)
 
  -- Giovanni Mascellani <gio at debian.org>  Sun, 29 Apr 2018 15:09:16 +0200
 
diff --git a/debian/patches/0006-Temp.patch b/debian/patches/fix_addURL.path
similarity index 75%
rename from debian/patches/0006-Temp.patch
rename to debian/patches/fix_addURL.path
index a6a36a9..f2f3e65 100644
--- a/debian/patches/0006-Temp.patch
+++ b/debian/patches/fix_addURL.path
@@ -1,6 +1,12 @@
 From: Giovanni Mascellani <gio at debian.org>
 Date: Sun, 29 Apr 2018 15:52:44 +0200
-Subject: Temp.
+Subject: Fix addURL API for OpenJDK 9
+
+In OpenJDK 9 the system ClassLoader is not an instance of
+URLClassLoader anymore, which triggers a casting exception.
+However, in Debian Geogebra is already statically linked to
+all its dependencies, so there is no need to dynamically
+update the classpath. So we comment out the faulty code.
 
 ---
  geogebra/plugin/ClassPathManipulator.java | 5 ++++-
diff --git a/debian/patches/series b/debian/patches/series
index e15257d..5b91488 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,4 +3,4 @@ applet_export.diff
 no_mac.diff
 version.diff
 use_apache_commons_collections.diff
-0006-Temp.patch
+fix_addURL.patch

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



More information about the pkg-java-commits mailing list