[ 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]