markt       2004/03/19 09:36:12

  Modified:    jasper2/src/share/org/apache/jasper/runtime
                        JspWriterImpl.java
  Log:
  Revert previous patch as this breaks more than it fixes. Need to find an alternative 
fix for bug 13499.
  
  Revision  Changes    Path
  1.11      +3 -0      
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/JspWriterImpl.java
  
  Index: JspWriterImpl.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/JspWriterImpl.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- JspWriterImpl.java        18 Mar 2004 21:05:17 -0000      1.10
  +++ JspWriterImpl.java        19 Mar 2004 17:36:12 -0000      1.11
  @@ -139,6 +139,9 @@
        * Discard the output buffer.
        */
       public final void clear() throws IOException {
  +        if (bufferSize == 0)
  +            throw new IllegalStateException(
  +                    getLocalizeMessage("jsp.error.ise_on_clear"));
           if (flushed)
               throw new IOException(
                       
getLocalizeMessage("jsp.error.attempt_to_clear_flushed_buffer"));
  
  
  

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

Reply via email to