johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thiago Veronezi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JOHNZON-17) RFC4627AwareInputStreamReader - Make sure that we read all the bytes before throwing an exception
Date Thu, 30 Oct 2014 14:32:34 GMT

    [ 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)

Mime
View raw message