marcsaeg    01/02/22 12:32:02

  Modified:    src/share/org/apache/jasper/servlet JspServlet.java
  Log:
  Porting thread synchronization fix from tomcat_32.
  
  The need to synchronize the ctxt.createCompiler() call
  doesn't seem to be critical in tomcat 3.3 due to the different
  class naming scheme.  Someone more familiar with the Jasper
  changes in Tomcat 3.3 should probably review this.
  
  PR: Bugzilla 80/BugRat 44
  
  Revision  Changes    Path
  1.8       +2 -2      
jakarta-tomcat/src/share/org/apache/jasper/servlet/JspServlet.java
  
  Index: JspServlet.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat/src/share/org/apache/jasper/servlet/JspServlet.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- JspServlet.java   2001/02/20 03:36:00     1.7
  +++ JspServlet.java   2001/02/22 20:32:00     1.8
  @@ -461,8 +461,8 @@
           Compiler compiler = ctxt.createCompiler();
           
           try {
  -            outDated = compiler.compile();
  -            if ( (jsw.servletClass == null) || (compiler.isOutDated()) ) {
  +            outDated = compiler.isOutDated();
  +            if ( (jsw.servletClass == null) || outDated ) {
                   synchronized ( this ) {
                       if ((jsw.servletClass == null) ||
                        (compiler.isOutDated() ))  {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to