mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Using Kit.initCause to wrap the original exception preventing creation of SecurityController class.
This commit is contained in:
parent
e1db421213
commit
eed65b7987
@ -229,16 +229,17 @@ public class Main {
|
||||
("org.mozilla.javascript.tools.shell.JavaPolicySecurity");
|
||||
securityImpl = (SecurityProxy)cl.newInstance();
|
||||
return;
|
||||
}catch (ClassNotFoundException ex) {
|
||||
} catch (ClassNotFoundException ex) {
|
||||
exObj = ex;
|
||||
}catch (IllegalAccessException ex) {
|
||||
} catch (IllegalAccessException ex) {
|
||||
exObj = ex;
|
||||
}catch (InstantiationException ex) {
|
||||
} catch (InstantiationException ex) {
|
||||
exObj = ex;
|
||||
}catch (LinkageError ex) {
|
||||
} catch (LinkageError ex) {
|
||||
exObj = ex;
|
||||
}
|
||||
throw new RuntimeException("Can not load security support: "+exObj);
|
||||
throw Kit.initCause(new IllegalStateException(
|
||||
"Can not load security support: "+exObj), exObj);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user