diff options
author | Paul Phillips <paulp@improving.org> | 2010-11-09 03:13:17 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-11-09 03:13:17 +0000 |
commit | e46a39797744d1fb4bda637f31034be5d25a6338 (patch) | |
tree | 24166bae78a78982d0ae30187761d7b22ba85f91 /src/compiler | |
parent | 6cb5c25802ec68d31fccde6bf9ee2fd2e8e3ff45 (diff) | |
download | scala-e46a39797744d1fb4bda637f31034be5d25a6338.tar.gz scala-e46a39797744d1fb4bda637f31034be5d25a6338.tar.bz2 scala-e46a39797744d1fb4bda637f31034be5d25a6338.zip |
While investigating the cause of #3984, discove...
While investigating the cause of #3984, discovered that set hashcodes
were being calculated like:
elems map (_.hashCode) sum
This looks totally correct, except that because of set+map semantics it
drops all the duplicate hashcodes and therefore calculates the wrong
sum anytime there are unequal elements with equal hashcodes. If we're
married to the set+map semantics (and I don't know what could be done
about it) I had better get a proper -Xlint going because this is one of
those traps which shoots bees out of its mouth. No review.
Diffstat (limited to 'src/compiler')
0 files changed, 0 insertions, 0 deletions