glenn       2002/12/27 17:47:11

  Modified:    jasper2/src/share/org/apache/jasper/compiler
                        JspRuntimeContext.java
  Log:
  Fix bug 15531
  
  Revision  Changes    Path
  1.9       +12 -8     
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.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- JspRuntimeContext.java    8 Dec 2002 13:42:53 -0000       1.8
  +++ JspRuntimeContext.java    28 Dec 2002 01:47:11 -0000      1.9
  @@ -317,9 +317,9 @@
        * registered with this class for JSP's.
        */
       private void checkCompile() {
  -        Iterator it = jsps.values().iterator();
  -        while (it.hasNext()) {
  -            JspServletWrapper jsw = (JspServletWrapper)it.next();
  +        Object [] wrappers = jsps.values().toArray();
  +        for (int i = 0; i < wrappers.length; i++ ) {
  +            JspServletWrapper jsw = (JspServletWrapper)wrappers[i];
               JspCompilationContext ctxt = jsw.getJspEngineContext();
               // JspServletWrapper also synchronizes on this when
               // it detects it has to do a reload
  @@ -527,7 +527,11 @@
   
               // Check for included files which are newer than the
               // JSP which uses them.
  -            checkCompile();
  +            try {
  +                checkCompile();
  +            } catch (Throwable t) {
  +                t.printStackTrace();
  +            }
           }
           
       }
  
  
  

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

Reply via email to