laogao
2014-05-19 17:09:33 UTC
Hi,
It seems (as of version 0.1.51) the inner class LsEntry is declared as
"public class LsEntry" inside ChannelSftp. I believe there is a subtle
difference between inner (non-static) classes and nested (static) classes,
which is causing me some headaches using JSch e.g. from Scala (could be
circumvented but the code looks weird). I'm wondering if this LsEntry could
be declared static, i.e. as nested (static) class, since it doesn't seem to
require (or depend on) concrete instances of the enclosing class
(ChannelSftp). Or is there something I blindly overlooked?
Thanks,
laogao
It seems (as of version 0.1.51) the inner class LsEntry is declared as
"public class LsEntry" inside ChannelSftp. I believe there is a subtle
difference between inner (non-static) classes and nested (static) classes,
which is causing me some headaches using JSch e.g. from Scala (could be
circumvented but the code looks weird). I'm wondering if this LsEntry could
be declared static, i.e. as nested (static) class, since it doesn't seem to
require (or depend on) concrete instances of the enclosing class
(ChannelSftp). Or is there something I blindly overlooked?
Thanks,
laogao