You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bi...@apache.org on 2004/10/20 07:26:26 UTC
cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/modules/config PolicyInterceptor.java
billbarker 2004/10/19 22:26:26
Modified: src/share/org/apache/tomcat/modules/config
PolicyInterceptor.java
Log:
Allow compilation with a 1.5 JDK
Revision Changes Path
1.16 +2 -1 jakarta-tomcat/src/share/org/apache/tomcat/modules/config/PolicyInterceptor.java
Index: PolicyInterceptor.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/config/PolicyInterceptor.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- PolicyInterceptor.java 25 Feb 2004 07:06:59 -0000 1.15
+++ PolicyInterceptor.java 20 Oct 2004 05:26:25 -0000 1.16
@@ -27,6 +27,7 @@
import java.security.Permissions;
import java.security.Policy;
import java.security.ProtectionDomain;
+import java.security.cert.Certificate;
import java.util.Enumeration;
import java.util.PropertyPermission;
@@ -199,7 +200,7 @@
try {
File dir = new File(base);
URL url = new URL("file:" + dir.getAbsolutePath());
- CodeSource cs = new CodeSource(url,null);
+ CodeSource cs = new CodeSource(url,(Certificate [])null);
/* We'll construct permissions for Jasper.
Tomcat uses normal policy and URLClassLoader.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org