sbt/util
Antonio Cunei 9aa0985f4b This commit reverts part of 322f6de655
The implementation of Relation should in theory make no difference
whether an element is unmapped, or whether it is mapped to an empty
set. One of the changes in 322f6de655
introduced an optimization to the '+' operation on Relations that,
in theory, should have made no difference to the semantic.

The result of that optimization is that some mappings of the form
"elem -> Set()" are no longer inserted in the forwardMap of the
Relation.

Unfortunately, the change resulted in the breakage of #1430,
causing "set every" to behave incorrectly. There must be, somewhere
in the code, a test on the presence of a key rather than an access
via <relation>.get(), or some other access that bypasses the
supposed semantic equivalence described above. I spent several
hours trying to track down exactly the offending test, without
success.

By undoing the relevant change in 322f6de655, "set every"
works again. That however offers no guarantee that everything else
will keep working correctly; the underlying quirk in the code that
depends on this supposedly inessential detail is also still
lurking in the code, which is less than ideal.
2014-09-11 02:04:17 +02:00
..
appmacro/src/main/scala/sbt/appmacro added scalariform 2014-05-01 12:50:07 -04:00
classfile added scalariform 2014-05-01 12:50:07 -04:00
classpath Removing printlns and adding the test, DOH. 2014-09-09 09:16:10 -04:00
collection Ok, this is actually the flaky issue with the test. 2014-08-11 16:13:26 -04:00
complete Fixes #1530. Fixes NPE by using IO.listFiles 2014-08-15 03:52:54 -04:00
control added scalariform 2014-05-01 12:50:07 -04:00
cross/src/main/input_sources Allow the "-bin" Scala version suffix to specify a bincompat version 2014-09-04 01:15:58 +02:00
datatype added scalariform 2014-05-01 12:50:07 -04:00
io Merge pull request #1401 from xuwei-k/watch 2014-06-27 12:05:59 -04:00
log Bump expected 2.11 module versions so we can compile with 2.11 2014-05-14 19:08:05 -04:00
logic/src Scalariforming test code 2014-05-07 11:52:23 -04:00
process Scalariforming test code 2014-05-07 11:52:23 -04:00
relation/src This commit reverts part of 322f6de655 2014-09-11 02:04:17 +02:00