You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by cr...@locus.apache.org on 2000/07/25 04:21:08 UTC

cvs commit: jakarta-tomcat/src/share/org/apache/jasper/compiler CharDataGenerator.java

craigmcc    00/07/24 19:21:08

  Modified:    src/share/org/apache/jasper/compiler CharDataGenerator.java
  Log:
  Add an innocuous newline to the generated output in an attempt to work around
  the bug in some JVMs that causes the code generated by the JSP compiler to
  fill the user's disk because of an infinite loop.
  
  This has been reported to solve the problem on the Solaris VM
  (build Solaris_JDK_1.2.2_05a, native threads, sunwjit), but no one
  will confess to knowing why this should matter :-).
  
  Submitted by: Brian P. Millett <bp...@ec-group.com>
  
  Revision  Changes    Path
  1.3       +4 -3      jakarta-tomcat/src/share/org/apache/jasper/compiler/CharDataGenerator.java
  
  Index: CharDataGenerator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/CharDataGenerator.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CharDataGenerator.java	2000/04/05 02:55:12	1.2
  +++ CharDataGenerator.java	2000/07/25 02:21:08	1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/CharDataGenerator.java,v 1.2 2000/04/05 02:55:12 craigmcc Exp $
  - * $Revision: 1.2 $
  - * $Date: 2000/04/05 02:55:12 $
  + * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/CharDataGenerator.java,v 1.3 2000/07/25 02:21:08 craigmcc Exp $
  + * $Revision: 1.3 $
  + * $Date: 2000/07/25 02:21:08 $
    *
    * ====================================================================
    * 
  @@ -90,6 +90,7 @@
   	    int to = Math.min(current + MAXSIZE, limit);
   	    generateChunk(writer, from, to);
   	    current = to;
  +	    writer.println();
   	}
       }