summaryrefslogtreecommitdiff
path: root/libre/icedtea-web/java13-SecurityManager.patch
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2020-01-04 22:21:56 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2020-01-04 22:21:56 -0500
commit35e271c4c505370511ef3f61f1bb74d4781c2a67 (patch)
tree3f207b3505e2ea354a53b81d5fcd8dc7c07802c7 /libre/icedtea-web/java13-SecurityManager.patch
parent52702508fd58367865a089ce04d4b9e6798e63a6 (diff)
downloadabslibre-35e271c4c505370511ef3f61f1bb74d4781c2a67.tar.gz
abslibre-35e271c4c505370511ef3f61f1bb74d4781c2a67.tar.bz2
abslibre-35e271c4c505370511ef3f61f1bb74d4781c2a67.zip
icedtea-web-1.8.3-1.parabola1: updating version
Diffstat (limited to 'libre/icedtea-web/java13-SecurityManager.patch')
-rw-r--r--libre/icedtea-web/java13-SecurityManager.patch65
1 files changed, 65 insertions, 0 deletions
diff --git a/libre/icedtea-web/java13-SecurityManager.patch b/libre/icedtea-web/java13-SecurityManager.patch
new file mode 100644
index 000000000..b7b80cc1e
--- /dev/null
+++ b/libre/icedtea-web/java13-SecurityManager.patch
@@ -0,0 +1,65 @@
+From 276806d9984331c754fb636ab11f05e78b3fc8c7 Mon Sep 17 00:00:00 2001
+From: Martin Schelldorfer <schelldorfer@gmail.com>
+Date: Fri, 20 Sep 2019 14:51:29 +0200
+Subject: [PATCH] #437 Application cannot be started with JDK 13 -
+ AWTSecurityManager was removed
+
+---
+ .../jnlp/runtime/JNLPSecurityManager.java | 30 +------------------
+ 1 file changed, 1 insertion(+), 29 deletions(-)
+
+diff --git a/netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java b/netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java
+index 367b2b25..be418103 100644
+--- a/netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java
++++ b/netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java
+@@ -29,7 +29,6 @@
+ import net.sourceforge.jnlp.util.logging.OutputController;
+ import net.sourceforge.jnlp.util.WeakList;
+ import net.sourceforge.swing.SwingUtils;
+-import sun.awt.AWTSecurityManager;
+ import sun.awt.AppContext;
+
+ /**
+@@ -47,7 +46,7 @@
+ * @author <a href="mailto:jmaxwell@users.sourceforge.net">Jon A. Maxwell (JAM)</a> - initial author
+ * @version $Revision: 1.17 $
+ */
+-class JNLPSecurityManager extends AWTSecurityManager {
++class JNLPSecurityManager extends SecurityManager {
+
+ // todo: some apps like JDiskReport can close the VM even when
+ // an exit class is set - fix!
+@@ -424,33 +423,6 @@
+ }
+
+ /**
+- * This returns the appropriate {@link AppContext}. Hooks in AppContext
+- * check if the current {@link SecurityManager} is an instance of
+- * AWTSecurityManager and if so, call this method to give it a chance to
+- * return the appropriate appContext based on the application that is
+- * running.
+- * <p>
+- * This can be called from any thread (possibly a swing thread) to find out
+- * the AppContext for the thread (which may correspond to a particular
+- * applet).
+- * </p>
+- */
+- @Override
+- public AppContext getAppContext() {
+- ApplicationInstance app = getApplication();
+- if (app == null) {
+- /*
+- * if we cannot find an application based on the code on the stack,
+- * then assume it is the main application
+- */
+- return mainAppContext;
+- } else {
+- return app.getAppContext();
+- }
+-
+- }
+-
+- /**
+ * Tests if a client can get access to the AWT event queue. This version allows
+ * complete access to the EventQueue for its own AppContext-specific EventQueue.
+ *