You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ecs-dev@jakarta.apache.org by rd...@apache.org on 2003/05/04 10:48:39 UTC

cvs commit: jakarta-ecs/src/java/org/apache/ecs ConcreteElement.java

rdonkin     2003/05/04 01:48:39

  Modified:    src/java/org/apache/ecs ConcreteElement.java
  Log:
  Fix for potential problem with PrintWriter not flushing. Submitted by Robert Lowe.
  
  Revision  Changes    Path
  1.29      +4 -2      jakarta-ecs/src/java/org/apache/ecs/ConcreteElement.java
  
  Index: ConcreteElement.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ecs/src/java/org/apache/ecs/ConcreteElement.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- ConcreteElement.java	27 Apr 2003 09:45:06 -0000	1.28
  +++ ConcreteElement.java	4 May 2003 08:48:38 -0000	1.29
  @@ -396,7 +396,9 @@
       */
       public void output(Writer out)
       {
  -        output ( new PrintWriter(out) );
  +        PrintWriter pw = new PrintWriter(out);
  +        output ( pw );
  +        pw.flush();
       }
       
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ecs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: ecs-dev-help@jakarta.apache.org