George Sexton created SSHD-351:
----------------------------------

             Summary: DefaultSftpClient.read() Returns InputStream which 
violates Closeable Interface contract
                 Key: SSHD-351
                 URL: https://issues.apache.org/jira/browse/SSHD-351
             Project: MINA SSHD
          Issue Type: Bug
    Affects Versions: 0.12.0
            Reporter: George Sexton
            Priority: Minor


If you call DefaultSftpClient.read(path), it returns an InputStream. If you 
inadvertantly, call close() twice on the input stream, on the second call, it 
throws an IOException - "SFTP error(2) No Such File".

This violates the Closeable interface which says if the resource is already 
closed(), the call is ignored.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to