That’s too bad, I thought that it will work because I have that kind of type declaration working with another packages. (javax.swing.plaf.FontUIResource)
Yes it does. I tried myself with that exact package. Code completion on “ftp” shows me all available methods of FTPClient. You still get a warning, but that complains of the argument that you provide and not that “connect” is unknown.