mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Udo Walker (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SSHD-910) JavaDoc example of SshClient not working
Date Tue, 09 Apr 2019 06:11:00 GMT
Udo Walker created SSHD-910:

             Summary: JavaDoc example of SshClient not working
                 Key: SSHD-910
                 URL: https://issues.apache.org/jira/browse/SSHD-910
             Project: MINA SSHD
          Issue Type: Bug
            Reporter: Udo Walker

The given code example in the official Javadoc of the class SshClient is not working: There
is a compile error in this line:


try(ClientSession session = client.connect(login, host, port).await().getSession()) {

The method await() returns a boolean so that the call getSession() is not correct.

The offical page is: [https://mina.apache.org/sshd-project/apidocs/org/apache/sshd/client/SshClient.html]

This message was sent by Atlassian JIRA

View raw message