| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
|
|
| |
added CanBuild type alias in package object scala.collection.generic
added breakout to scala.collection test for breakout
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Breaks down the hash function in BoxesRunTime by type so we can do as
much as possible at compile time. Documents various trouble points I've
identified with trying to get the hashCodes aligned. Test case exercises
the hashCode functions.
Deleted all the code associated with previous equality adventures. Don't
worry, I can put anything back if it turns out we have to change course
again, but for now it's noise.
Also, gives return types to the box and unbox methods which are added to
the primitive companions, so e.g. Int.box(5) now returns a j.l.Integer
instead of an Object.
|
|
|
|
|
| |
Fixed #2517
|
| |
|
|
|
|
|
|
| |
- Renames GenericRange to NumericRange
- Removes most @experimental annotations
|
|
|
|
|
|
| |
Moved disabled tests back into their original place. Expect 7 tests to
fail.
|
|
|
|
|
|
| |
Fixed initial variable binding for method parameters, that caused the
inliner to infer wrong types for tail recursive methods
|
|
|
|
|
|
|
|
| |
Scala implementation of fancier hashCode algorithm. At the moment it
isn't used unless you supply -Yjenkins-hashCodes to scalac. Without the
flag, the supplied test case generates 12559 unique hashCodes among
90000 case class instances; with the flag it generates 89999.
|
| |
|
| |
|
|
|
|
|
| |
fixed problem with Vector.dropRight, added additional test case
|
| |
|
|
|
|
|
|
| |
fixed 2544, reimplemented SeqLike.indexWhere, segmentLength and
lengthCompare in terms of iterators instead of foreach and breaks
|
|
|
|
|
|
| |
Improves Enumeration to obtain names of values through reflection. This
addresses those parts of #2111 that we agreed on in the Scala meeting.
|
|
|
|
|
| |
Fixed #2494, plus some reorganization of swing imports
|
|
|
|
|
|
| |
fixed bug in Stream::flatMap (still optimised as it was needed for
correctness --> added regression tests for corresponding tickets)
|
| |
|
|
|
|
|
|
|
|
| |
Fix and test case for #2512, plus lots of time expended tuning HashSet
starting sizes and growth rate, with almost nothing to show for it (but
I did determine that "shadowed" is constructed identically something
like 10,000 times, so there is probably a cache to be had there.)
|
|
|
|
|
| |
Parser fix involving backquoted identifiers (#2514) plus test case.
|
| |
|
|
|
|
|
|
| |
Added (a variation on) jorge ortiz's sortBy to SeqLike, added docs and
test case. Added map to Ordering.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Implementation of martin's suggested fix for #1503.
|
|
|
|
|
|
| |
Another bunch of work on Numeric, Range, GenericRange, BigDecimal, and a
pile of test cases for various aspects of GenericRange.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
reverted immutable.Vector because it gave random build errors on my
machine. Fixed various tickets, updated test and check files.
|
|
|
|
|
|
|
| |
Looked through the .disabled tests which are still under files (as
opposed to those moved to disabled.) Brought some back to life, put a
stake through the heart of others, left two as they were.
|
|
|
|
|
|
| |
Moved a pile of passing tests from pending to files, fixed some untesty
tests, and will now close the associated tickets.
|
| |
|
|
|
|
|
|
| |
Test cases for some tickets fixed by recent array and implicit activity:
#1038, #1005, #1272.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
fixed #2316: No longer cache entire SearchResult when looking for implicits in the parts of the expected type. (patch by retronym -- see ticket)
A SearchResult may contain symbols local to the scope of the search that
were used as implicit parameters, so they are not safely cacheable. The
fix for #2101 does not suffice. That patch avoided bound symbols being
duplicated, but the problem is much worse.
The implicits for an expected type depend on more than just that type,
so we cannot cache them using the expected type as a key.
The neg/t2316 test illustrates this: T1 may provide two implicits, one
requires an implicit T2, another an implicit T3. If an implicit T1
is first required when only a T2 is in scope, the SearchResult will
describe the corresponding implicit. Now, if we enter an implicit value
of type T3 into scope, the search should fail (it is ambiguous), but the
cache does not take this new fact into account.
The patch replaces the erroneous aggressive caching with a more
conservative version that only caches ImplicitInfo's.
|
|
|
|
|
|
|
|
| |
Lazy fields null out fields that are used only in their initializer.
When the lazy value is forced, it will null out all private fields that
are used only by the current lazy value. This should reduce memory
leaks, see #720
|
| |
|
| |
|
| |
|