remm 2004/04/06 16:05:39 Modified: jasper2/src/share/org/apache/jasper/runtime BodyContentImpl.java Log: - Bug 28236: when reallocating, make the buffer grow faster (512 bytes at a time was not sufficient). - Remove main method. Revision Changes Path 1.12 +2 -11 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/BodyContentImpl.java Index: BodyContentImpl.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/BodyContentImpl.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- BodyContentImpl.java 17 Mar 2004 19:23:04 -0000 1.11 +++ BodyContentImpl.java 6 Apr 2004 23:05:39 -0000 1.12 @@ -547,15 +547,6 @@ } } - public static void main (String[] args) throws Exception { - char[] buff = {'f','o','o','b','a','r','b','a','z','y'}; - BodyContentImpl bodyContent - = new BodyContentImpl(new JspWriterImpl(null, 100, false)); - bodyContent.println (buff); - System.out.println (bodyContent.getString ()); - bodyContent.writeOut (new PrintWriter (System.out)); - } - /** * Sets the writer to which all output is written. */ @@ -595,8 +586,8 @@ return; } - if (len < Constants.DEFAULT_TAG_BUFFER_SIZE) { - len = Constants.DEFAULT_TAG_BUFFER_SIZE; + if (len < cb.length) { + len = cb.length; } bufferSize = cb.length + len;
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]