On 12/10/18 12:58, Daniel Fuchs wrote:
...

     int available = impl.available();
     return eof ? 0 : available;

addresses the issue of available potentially returning garbage
after EOF while being much less risky...

Agreed.

The above resolves the original reported potential bug,
without changing existing long-standing behavior.

Vyom, can you please proceed with the aboves source
change, and also update the existing CloseAvailable.java
to add additional coverage for this scenario.

Thanks,
-Chris.

Reply via email to