MariuszGlogowski / jsonp-java

Automatically exported from code.google.com/p/jsonp-java
Apache License 2.0
0 stars 0 forks source link

Something confusing in source code. #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 DanielDi...@gmail.com on 28 Dec 2012 at 3:08