blob: 0948921b4770d993806a44cdcd70e1ff3e74fc5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
diff -urpN rhino1_5R5.old/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java rhino1_5R5/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java
--- rhino1_5R5.old/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java 2004-03-25 15:54:34.000000000 +0100
+++ rhino1_5R5/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java 2005-02-01 13:58:26.521223264 +0100
@@ -124,7 +124,7 @@ public class JavaPolicySecurity extends
public JavaPolicySecurity() {
// To trigger error on jdk-1.1 with lazy load
- new CodeSource(null, null);
+ new CodeSource(null, (java.security.cert.Certificate[])null);
}
protected void callProcessFileSecure(final Context cx,
@@ -167,8 +167,8 @@ public class JavaPolicySecurity extends
}
private ProtectionDomain getUrlDomain(URL url) {
- CodeSource cs = new CodeSource(url, null);
- PermissionCollection pc = Policy.getPolicy().getPermissions(cs);
+ CodeSource cs = new CodeSource(url, (java.security.cert.Certificate[])null);
+ PermissionCollection pc = Policy.getPolicy().getPermissions(cs);
return new ProtectionDomain(cs, pc);
}
|