tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard M. Lewis Ship (JIRA)" <tapestry-...@jakarta.apache.org>
Subject [jira] Closed: (TAPESTRY-270) FAQ Code example contains bug
Date Fri, 09 Sep 2005 12:13:31 GMT
     [ http://issues.apache.org/jira/browse/TAPESTRY-270?page=all ]
     
Howard M. Lewis Ship closed TAPESTRY-270:
-----------------------------------------

    Fix Version: 4.0
     Resolution: Fixed
      Assign To: Howard M. Lewis Ship

> FAQ Code example contains bug
> -----------------------------
>
>          Key: TAPESTRY-270
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-270
>      Project: Tapestry
>         Type: Bug
>   Components: Documentation
>     Versions: unspecified
>  Environment: Java all
>     Reporter: Andy Hedges
>     Assignee: Howard M. Lewis Ship
>      Fix For: 4.0

>
> The FAQ item here: http://jakarta.apache.org/tapestry/faq.html#faq-N40012F contains the
following code:
>         while (in.read(data) > -1)
>         {
>             out.write(data);
>         }
> Which should more appropriately be something like:
>         int bytesRead = 0;     
>         while ((bytesRead = in.read(data)) > -1)
>         {
>             out.write(data, 0 , bytesRead);
>         }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


Mime
View raw message