You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Goldstein Lyor (JIRA)" <ji...@apache.org> on 2019/04/10 18:19:00 UTC

[jira] [Resolved] (SSHD-910) JavaDoc example of SshClient not working

     [ https://issues.apache.org/jira/browse/SSHD-910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Goldstein Lyor resolved SSHD-910.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 2.3.0

> 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
>            Assignee: Goldstein Lyor
>            Priority: Minor
>             Fix For: 2.3.0
>
>
> 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
(v7.6.3#76005)