[jcifs] SmbFile.equals() always returning false
Rob Wygand
rob at filefish.com
Tue Dec 11 07:35:46 EST 2001
Mike,
In 0.6b3, SmbFile.equals() is always returning 0. I've tracked this down
to SmbFile.hashCode(). Basically, SmbFile().hashCode() starts by calling
address.hashCode(). This value is coming back different every time,
which I assume is because there is no UniAddress.hashCode() and it's
using the default on in Object.
The fix would be to implement UniAddress.hashCode(), I guess.
Thoughts on a quick fix?
rjw
More information about the jcifs
mailing list