On Wed, 15 Mar 2023 14:23:43 GMT, Leonid Mesnik <lmes...@openjdk.org> wrote:

>> Leonid Mesnik has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   fixed test
>
> test/lib/jdk/test/lib/process/StreamPumper.java line 145:
> 
>> 143:                 }
>> 144:             }
>> 145:             final String line = lineBos.toString();
> 
> The code in 'lastcrlf == -1' as well as in 'lastcrlf < len - 1' writes 
> remaining buf into lineBos. This lineBos is used to make line which is 
> processed in line 127.
> However, if the stream is emptied then the chunk after last '\n' is written 
> in in the lineBos but we never reach line 127 to call processLine for it.

Thanks for the additional offline explanations about this code.

-------------

PR: https://git.openjdk.org/jdk/pull/13034

Reply via email to