costin      2002/06/12 16:23:59

  Modified:    jasper2/src/share/org/apache/jasper/compiler
                        JspRuntimeContext.java
  Log:
  As previously discussed, use a 'plain' collection and remove the dep on
  common-collections.
  
  Revision  Changes    Path
  1.2       +9 -7      
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JspRuntimeContext.java
  
  Index: JspRuntimeContext.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JspRuntimeContext.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JspRuntimeContext.java    6 May 2002 04:33:15 -0000       1.1
  +++ JspRuntimeContext.java    12 Jun 2002 23:23:59 -0000      1.2
  @@ -1,3 +1,4 @@
  +
   /*
    * $Header$
    * $Revision$
  @@ -72,13 +73,13 @@
   import java.security.PermissionCollection;
   import java.util.Iterator;
   import java.util.List;
  +import java.util.Collections;
  +import java.util.HashMap;
   import java.util.Map;
   
   import javax.servlet.ServletContext;
   import javax.servlet.jsp.JspFactory;
   
  -import org.apache.commons.collections.FastHashMap;
  -
   import org.apache.jasper.JasperException;
   import org.apache.jasper.Constants;
   import org.apache.jasper.JspEngineContext;
  @@ -203,7 +204,7 @@
       /**
        * Maps JSP pages to their JspServletWrapper's
        */
  -    private Map jsps = new FastHashMap();
  +    private Map jsps = Collections.synchronizedMap( new HashMap());
    
   
       /**
  @@ -343,6 +344,7 @@
               // a protocol other than file: will generate a
               // bad file system path, so only add file:
               // protocol URL's to the classpath.
  +            
               if( urls[i].getProtocol().equals("file") ) {
                   cpath.append((String)urls[i].getFile()+sep);
               }
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to