[ 
https://issues.apache.org/jira/browse/VFS-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16867736#comment-16867736
 ] 

Jochen Wiedmann commented on VFS-614:
-------------------------------------

I think, what's actually intended here, is the invocation of onClose() as an 
indicator of EOF. So, to ensure upwards compatibility, I'd suggest either of

 

1.) Rather than simply removing the read() call, replace it with onClose(). Or, 
even better:

2.) Add a new method onEof() and make sure, that it is invoked properly.

 

> MonitorInputStream should not close the stream in read()
> --------------------------------------------------------
>
>                 Key: VFS-614
>                 URL: https://issues.apache.org/jira/browse/VFS-614
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Boris Petrov
>            Assignee: Otto Fowler
>            Priority: Critical
>             Fix For: 1.0
>
>
> Check the following thread for more description:
> https://mail-archives.apache.org/mod_mbox/commons-user/201606.mbox/%3C90211dd5-5954-e786-e493-30187e68007b%40profuzdigital.com%3E
> And the following repo with a "demo" of the bug:
> https://github.com/boris-petrov/vfs-bug



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to