diff options
author | Rui Gonçalves <ruippeixotog@gmail.com> | 2015-06-26 22:47:18 +0100 |
---|---|---|
committer | Rui Gonçalves <ruippeixotog@gmail.com> | 2015-06-26 22:58:38 +0100 |
commit | 66bdc5200f5270f4064c6b92192a43db34136714 (patch) | |
tree | 95484a5058ac0ec81e2e1698edea07f54fd597e5 /src/compiler/scala/tools/nsc/javac | |
parent | d90d8b89687be5c817cc081ed970328c6d8fd13f (diff) | |
download | scala-66bdc5200f5270f4064c6b92192a43db34136714.tar.gz scala-66bdc5200f5270f4064c6b92192a43db34136714.tar.bz2 scala-66bdc5200f5270f4064c6b92192a43db34136714.zip |
Fix size update on `mutable.TreeMap#clear()`
The previous implementation has a major bug - although `clear()` sets the root node to `null`, the `size` attribute of the `Tree` was not updated. This effectively meant that even after a `map.clear()`, a call to `map.size` would still yield the old size of the map.
The scalacheck test suite was updated to contemplate this issue.
Diffstat (limited to 'src/compiler/scala/tools/nsc/javac')
0 files changed, 0 insertions, 0 deletions