1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
Description: Fixes the compatibility with Java 11
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: no
--- a/netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java
+++ b/netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java
@@ -339,33 +339,6 @@
}
/**
- * Checks whether the window can be displayed without an applet
- * warning banner, and adds the window to the list of windows to
- * be disposed when the calling application exits.
- */
- @Override
- public boolean checkTopLevelWindow(Object window) {
- ApplicationInstance app = getApplication();
-
- // remember window -> application mapping for focus, close on exit
- if (app != null && window instanceof Window) {
- Window w = (Window) window;
-
- OutputController.getLogger().log(OutputController.Level.ERROR_DEBUG, "SM: app: " + app.getTitle() + " is adding a window: " + window + " with appContext " + AppContext.getAppContext());
-
- weakWindows.add(w); // for mapping window -> app
- weakApplications.add(app);
-
- app.addWindow(w);
- }
-
- // todo: set awt.appletWarning to custom message
- // todo: logo on with glass pane on JFrame/JWindow?
-
- return super.checkTopLevelWindow(window);
- }
-
- /**
* Checks whether the caller can exit the system. This method
* identifies whether the caller is a real call to Runtime.exec
* and has special behavior when returning from this method
@@ -421,33 +394,4 @@
protected void disableExit() {
exitAllowed = false;
}
-
- /**
- * 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.
- *
- * FIXME there are probably huge security implications for this. Eg:
- * http://hg.openjdk.java.net/jdk7/awt/jdk/rev/8022709a306d
- *
- * @exception SecurityException if the caller does not have
- * permission to accesss the AWT event queue.
- */
- @Override
- public void checkAwtEventQueueAccess() {
- /*
- * this is the templace of the code that should allow applets access to
- * eventqueues
- */
-
- // AppContext appContext = AppContext.getAppContext();
- // ApplicationInstance instance = getApplication();
-
- // if ((appContext == mainAppContext) && (instance != null)) {
- // If we're about to allow access to the main EventQueue,
- // and anything untrusted is on the class context stack,
- // disallow access.
- super.checkAwtEventQueueAccess();
- // }
- }
-
}
|