[
https://issues.apache.org/jira/browse/SSHD-910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16814704#comment-16814704
]
Goldstein Lyor commented on SSHD-910:
-------------------------------------
Thanks for the issue - will fix the Javadoc - please note though that project's
[README|https://github.com/apache/mina-sshd/blob/master/README.md] is
up-to-date - specifically the [setup a client in 5
minutes|https://github.com/apache/mina-sshd/blob/master/docs/client-setup.md]
section - where you can find a correct code snippet.
Specifically for the issue you raised, all you need to do is replace _await_
with _verify_ and the code will work
> 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
> Priority: Minor
>
> 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)