summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Brinkmann <luckyduck@gentoo.org>2005-01-31 22:44:55 +0000
committerJan Brinkmann <luckyduck@gentoo.org>2005-01-31 22:44:55 +0000
commit30043f6bdce7d33f38f533d77e032f55f9023df1 (patch)
treecfb2c99ae7392ab96d7c86f09abd0eb7a893348d /dev-java/rhino/files
parentCleanup autotools stuff. (diff)
downloadgentoo-2-30043f6bdce7d33f38f533d77e032f55f9023df1.tar.gz
gentoo-2-30043f6bdce7d33f38f533d77e032f55f9023df1.tar.bz2
gentoo-2-30043f6bdce7d33f38f533d77e032f55f9023df1.zip
added a patch to fix compilation with jdk1.5, fixes bug #80257
(Portage version: 2.0.51-r15)
Diffstat (limited to 'dev-java/rhino/files')
-rw-r--r--dev-java/rhino/files/1.5.5_jdk15.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/dev-java/rhino/files/1.5.5_jdk15.patch b/dev-java/rhino/files/1.5.5_jdk15.patch
new file mode 100644
index 000000000000..e1cbccb4648b
--- /dev/null
+++ b/dev-java/rhino/files/1.5.5_jdk15.patch
@@ -0,0 +1,24 @@
+diff -uprN toolsrc.orig/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java
+--- toolsrc.orig/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java 2005-01-31 23:35:59.926932408 +0100
++++ toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java 2005-01-31 23:42:08.121958256 +0100
+@@ -124,7 +124,8 @@ public class JavaPolicySecurity extends
+
+ public JavaPolicySecurity() {
+ // To trigger error on jdk-1.1 with lazy load
+- new CodeSource(null, null);
++ java.security.CodeSigner[] foo = new java.security.CodeSigner[1];
++ new CodeSource(null, foo);
+ }
+
+ protected void callProcessFileSecure(final Context cx,
+@@ -167,7 +168,9 @@ public class JavaPolicySecurity extends
+ }
+
+ private ProtectionDomain getUrlDomain(URL url) {
+- CodeSource cs = new CodeSource(url, null);
++ // dummy needed for jdk1.5
++ java.security.CodeSigner[] foo = new java.security.CodeSigner[1];
++ CodeSource cs = new CodeSource(url, foo);
+ PermissionCollection pc = Policy.getPolicy().getPermissions(cs);
+ return new ProtectionDomain(cs, pc);
+ }