[
https://issues.apache.org/jira/browse/JOHNZON-17?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14190127#comment-14190127
]
Thiago Veronezi commented on JOHNZON-17:
----------------------------------------
Hi Hendrik, thanks!
Please note the line..
{code}
- inputStream.unread(utfBytes,0,read);
+ inputStream.unread(utfBytes);
{code}
I guess we should replace
{code}
inputStream.unread(utfBytes);
{code}
by
{code}
inputStream.unread(utfBytes, 0, utfBytes.length);
{code}
Can you check that out for me? I won't be able to do it before 20:00 EST today.
> 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
> Assignee: Hendrik Saly
> Fix For: 0.2-incubating
>
> Attachments: make_sure_we_read_all_bytes.patch,
> make_sure_we_read_all_bytes_2.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)