зеркало из https://github.com/mono/ikvm-fork.git
Bug fix. Make sure sun.misc.Launcher is initialized before setting a security manager, because Launcher assumes there is no security manager yet.
This commit is contained in:
Родитель
f59b5446af
Коммит
af73a8d55e
|
@ -324,6 +324,9 @@ public final class System {
|
|||
|
||||
private static synchronized
|
||||
void setSecurityManager0(final SecurityManager s) {
|
||||
// [IKVM] force sun.misc.Launcher to initialize, because it assumes that it runs without a SecurityManager
|
||||
sun.misc.Launcher.getLauncher();
|
||||
|
||||
SecurityManager sm = getSecurityManager();
|
||||
if (sm != null) {
|
||||
// ask the currently installed security manager if we
|
||||
|
|
Загрузка…
Ссылка в новой задаче