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:
jfrijters 2011-10-11 08:00:45 +00:00
Родитель f59b5446af
Коммит af73a8d55e
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -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