Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0
-
None
Description
FileSystemOptions.compareTo() uses TreeMap's hashcode. This is not appropriate if map contains array instances since Array's equals() merely checks == (so that new Array[0].equals(new Array[0]) is false).
So when I configure FileSystemOptions like {{SftpFileSystemConfigBuilder.getInstance().setIdentities(options, new File[]
{new File(privateKeyFile)})}} I never get filesystem instance reused.
Attachments
Issue Links
- is part of
-
VFS-281 Enhance FileSystemOptions so that the ConfigBuilder classes are no longer necessary.
- Resolved