diff options
author | Rex Kerr <ichoran@gmail.com> | 2014-01-30 11:43:26 -0800 |
---|---|---|
committer | Rex Kerr <ichoran@gmail.com> | 2014-01-30 11:47:05 -0800 |
commit | f97e2d42eb211d429b27f79fe993bf48c92e9740 (patch) | |
tree | 876b10816206ff8180e572804bb101464f560b2c /src/manual/scala/man1/scalac.scala | |
parent | 0e578e693196f93b1ba4f972a2c96d468bef464a (diff) | |
download | scala-f97e2d42eb211d429b27f79fe993bf48c92e9740.tar.gz scala-f97e2d42eb211d429b27f79fe993bf48c92e9740.tar.bz2 scala-f97e2d42eb211d429b27f79fe993bf48c92e9740.zip |
SI-8213 AnyRefMap.getOrElseUpdate is faulty
Altered getOrElseUpdate to be robust to the map changing out from under it as a result of calling the default value method. Side-effects FTW!
Made a comparable change in LongMap also, as it was also affected. And added a test to SetMapConsistencyTest.
Diffstat (limited to 'src/manual/scala/man1/scalac.scala')
0 files changed, 0 insertions, 0 deletions