[ 
https://issues.apache.org/jira/browse/JOHNZON-17?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thiago Veronezi updated JOHNZON-17:
-----------------------------------
    Attachment: make_sure_we_read_all_bytes.patch

This patch reads byte by byte until we read all our 4 important ones.
According to the [Java 
API|http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html#read(byte\[\],%20int,%20int)],
 "read" might not read all the bytes in one single shot. 

> RFC4627AwareInputStreamReader - Make sure that we read all the bytes before 
> throwing an exception
> -------------------------------------------------------------------------------------------------
>
>                 Key: JOHNZON-17
>                 URL: https://issues.apache.org/jira/browse/JOHNZON-17
>             Project: Johnzon
>          Issue Type: Bug
>            Reporter: Thiago Veronezi
>             Fix For: 0.2-incubating
>
>         Attachments: make_sure_we_read_all_bytes.patch
>
>




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

Reply via email to