Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Something confusing in source code. #5

Description

@GoogleCodeExporter
I read the source code of jsonp-java and I found In the class 
ByteArrayServletOutputStream there is a method enlarge, why shouldn't it modify 
the count field in the class. 

The methods named setBufferSize and getBufferSize in 
HttpServletResponseContentWrapper will not get the same result because the 
setBufferSize just enlarges the buf[] array in ByteArrayServletOutputStream 
instance buffer without modifing the count field in buffer and getBufferSize 
just return the count field of ByteArrayServletOutputStream instance.



Original issue reported on code.google.com by [email protected] on 28 Dec 2012 at 3:08

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions