Using Kit.initCause to wrap the original exception preventing creation of SecurityController class.
git-svn-id: svn://10.0.0.236/trunk@160764 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user