[ 
https://issues.apache.org/jira/browse/JOHNZON-18?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14196840#comment-14196840
 ] 

Thiago Veronezi commented on JOHNZON-18:
----------------------------------------

Not really,

This guy is breaking my TomEE tests locally (I run it in a VM). TomEE sends a 
[sun.net.www.protocol.http.HttpURLConnection$HttpInputStream|https://github.com/openjdk-mirror/jdk7u-jdk/blob/master/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java#L2932]
 to this reader. This stream extends FilterInputStream, which also might return 
0 on "read".

[http://docs.oracle.com/javase/7/docs/api/java/io/FilterInputStream.html#read(byte\[\],%20int,%20int)]


> JsonStreamParserImpl not filling up buffer consistently
> -------------------------------------------------------
>
>                 Key: JOHNZON-18
>                 URL: https://issues.apache.org/jira/browse/JOHNZON-18
>             Project: Johnzon
>          Issue Type: Bug
>          Components: Core
>            Reporter: Thiago Veronezi
>            Assignee: Hendrik Saly
>             Fix For: 0.2-incubating
>
>         Attachments: 
> JsonStreamParserImpl_not_filling_up_buffer_consistently.patch, 
> JsonStreamParserImpl_not_filling_up_buffer_consistently_2.patch, 
> JsonStreamParserImpl_not_filling_up_buffer_consistently_3.patch, 
> JsonStreamParserImpl_not_filling_up_buffer_consistently_4.patch
>
>
> This is related to the issue discussed 
> [here|https://issues.apache.org/jira/browse/JOHNZON-17]. Basically, the 
> "read" method might not read all the bytes at once. We need to make sure to 
> read at least one until we reach the value "-1".



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to