[ https://issues.apache.org/jira/browse/SSHD-1124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17284833#comment-17284833 ]
Lyor Goldstein commented on SSHD-1124: -------------------------------------- Simple workaround: {code:java} SubsystemFactory subsystemfactory = new SftpSubsystemFactory(); sshdServer.setSubsystemFactories(Collections.singletonList(subsystemfactory)); {code} > Starting sshdServer compile time error > -------------------------------------- > > Key: SSHD-1124 > URL: https://issues.apache.org/jira/browse/SSHD-1124 > Project: MINA SSHD > Issue Type: Question > Reporter: Susmit Sarkar > Priority: Blocker > > Getting a compile-time error with this below piece of code: > > {code:java} > // code placeholder > SftpSubsystemFactory subsystemfactory = new SftpSubsystemFactory(); > sshdServer.setSubsystemFactories(Collections.singletonList(subsystemfactory));{code} > Error is: > {code:java} > // code placeholder > error: incompatible types: List<SftpSubsystemFactory> cannot be converted to > List<SubsystemFactory>DaemonSSHD.java:218: error: incompatible types: > List<SftpSubsystemFactory> cannot be converted to List<SubsystemFactory> > [javac] > sshdServer.setSubsystemFactories(Collections.singletonList(subsystemfactory)); > [javac] > {code} > ^ > Any suggestion will be helpful -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org