| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
closes #3857: retain pre-erasure info in type history after cloning of
mixed in members and, specifically for this bug, fields, so that java
generic type sigs are more precise.
review by DRagos
|
|
|
|
|
|
|
|
| |
appliedType goes under annotations.
removed some dead code in isSubtypeHK0.
review by rytz
|
|
|
|
|
|
| |
Adds a zip for ParIterables + a new Zipped view for ParSeqView and
ParIterableView + a bench test. No review
|
| |
|
|
|
|
|
|
| |
InterruptedException while waiting for result should be ignored. review
by odersky
|
|
|
|
|
|
|
|
|
|
|
|
| |
Revert "CPI -> SCPI to (hopefully) fix scaladoc failure in nightly.
probably indicates a bug in scaladoc or the type checker or the spec,
since abstract type members seem to be allowed in objects inconsistently
across these three. no review."
that was a little too hasty.. SCPI was already defined somewhere
This reverts commit 165424cd9175d7e6d33bc541f2aff2575ee31121.
|
|
|
|
|
|
|
|
| |
CPI -> SCPI to (hopefully) fix scaladoc failure in nightly. probably
indicates a bug in scaladoc or the type checker or the spec, since
abstract type members seem to be allowed in objects inconsistently
across these three. no review.
|
|
|
|
|
| |
Rollback MutableSourceFile, the whole idea is broken
|
| |
|
|
|
|
|
|
| |
Added an override to immutable.IndexedSeq#toIndexedSeq which returns
itself. Closes #3732, no review.
|
| |
|
| |
|
|
|
|
|
| |
Test case submitted by mark harrah closes #2813, no review.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
closes #3792: type equality for singleton types did not take type
aliases into account while chasing the chain of underlying types (if the
underlying type is an alias of a singleton type, it should be followed)
review by odersky
|
|
|
|
|
|
|
|
| |
initialize the tree's symbol in typedTypeDef to make sure its info is
loaded.
review by odersky
|
|
|
|
|
| |
no review.
|
|
|
|
|
|
| |
and still came out of the washing machine smiling. Already reviewed by a
certain i. dragos so no review.
|
|
|
|
|
|
| |
Reimplementing parallel views to solve several performance glitches. No
review.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ldc being used instead of bipush or sipush. The cheaper instructions
were only being used when the argument was typed as byte or short, but
an Int in the byte or short range can as easily use them. This also
saves an entry in the constant pool.
iconst_n not being used except on Ints. Same issue in reverse: pushing
short 3 on the stack is cheaper with iconst_3 than with sipush.
Example:
class A {
def f1: Int = 100 // was ldc #X, now bipush 100
def f2: Int = 5000 // was ldc #X, now sipush 5000
def f3: Byte = 2 // was bipush 2, now iconst_2
def f4: Short = 2 // was sipush 2, now iconst_2
}
Review by dragos.
|
|
|
|
|
| |
Scala IDE needs mutable files with changing content. review by odersky
|
|
|
|
|
|
| |
[scaladoc] Adds some simple tests for Scaladoc (using Scalacheck).
Contributed by Kato Kazuyosh. No review.
|
| |
|
|
|
|
|
|
| |
Fixes the way results of Scalatest are checked by Partest. Contributed
by Kato Kazuyoshi. Review by phaller.
|
|
|
|
|
|
|
|
|
| |
Painstaking elimination of redundant array creation code, also
eliminating the lingering usage of "wrapArray" which it has long been
noted can go away after next newstarr and now perhaps it really can. A
very careful patch so I'll say no review, but it's a bit of a sensitive
area so feel free to go reviewing anyway.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Changed Seq#distinct to use a mutable hashset rather than an immutable
one in a var. The benchmarks are not close: it's anywhere from 2 to 3
times faster this way. Majority of the credit goes to Tiark for slyly
leaving a comment where I could see it.
TR: should use mutable.HashSet?
PP: yes. yes we should.
Review by community.
|
|
|
|
|
|
| |
Tail recursive implementation of mapConserve, submitted by Eric
Willigers. Closes #2411, review by malayeri.
|
| |
|
|
|
|
|
|
|
| |
Adds links from letters to the reference index on the upper section
of the left frame. Needs some layout/color improvements. Review by
dubochet.
|
|
|
|
|
|
|
| |
impressively tedious it is to work directly with the AST, so I picked up
TreeDSL again and fleshed it out some more. And then I did a once over
on SyntheticMethods beating out bits of duplication. No review.
|
| |
|
| |
|
|
|
|
|
|
| |
Fixed an issue with ListSet getting confused about what goes forward and
what goes backward. No review.
|
| |
|
|
|
|
|
|
| |
added typedLastTree functionality to CompilerControl. Avoid some "tree
not found" errors. Review by milessabin.
|
|
|
|
|
| |
Better unlocking behavior when exceptions are raised. Review by moors.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixed long standing annoyance which prevents the same source file from
being used as both a script and a program. If a script has only a single
top level object with a main method, then that is the object to which
arguments will be passed. (Contrast with the current situation, where
a wrapper object is wrapped around it and the script will never do
anything since there is nothing which can reference the object.)
So now you can do this:
% cat script.scala
object FiddleDeeMain {
def main(args: Array[String]): Unit = {
println(args mkString " ")
}
}
% scala -nocompdaemon script.scala a b c
a b c
% scala script.scala a b c
a b c
% scalac script.scala
% scala FiddleDeeMain a b c
a b c
Closes #1173, review by community.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Restoring negative literal parsing behavior to what should be the least
surprising option. Thanks much to Johannes Rudolph for identifying the
bug in the bytecode generator which needed addressing for us to arrive
at proper -0.0 behavior, and for writing the majority of this patch.
A '-' followed immediately by either a number or a period should now
always be treated as a single numeric literal, which means the minus
binds more tightly than anything else. A specific example of how this
differs from 2.8 final is:
-5.+(10) == 5.0 // and not -15.0
The full range of potentially ambiguous parses involving prefix
operators, numbers, and dots is quite large and still needs to be
completely and clearly specified.
Closes #2378 and #3657, review by odersky, jrudolph.
|
|
|
|
|
|
| |
Refactorings to make iterators required by task objects less restricted.
No review
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some tweaks to ListSet to make it less pathological in its outlook. We
can see some modest improvements in run time and answer quality via the
enclosed test case:
// with this patch: 2.250s elapsed, assertions pass.
// without this patch: 51.441s elapsed, and it's
a mercy killing: java.lang.StackOverflowError at
scala.collection.immutable.ListSet$Node.contains(ListSet.scala:117) at
scala.collection.immutable.ListSet$Node.contains(ListSet.scala:117)
Closes #3822, review by community.
|
|
|
|
|
|
|
| |
Does what can probably be done about strange iterator exhaustion
behavior. Maybe we should start thinking about iteratees... Closes
#3760, no review.
|
|
|
|
|
|
| |
Modified XMLEventReader to write dummy <ignore/> tag only once.
Contributed by Jean-Laurent Huynh, reviewed by extempore. Closes #3840.
|
|
|
|
|
|
| |
support in MarkupParser to use a Queue instead of a Stream. Contributed
by Jean-Laurent Huynh, reviewed by extempore. Closes #3720.
|
|
|
|
|
|
| |
but remains open until we determine how to handle jagged lists. No
review.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
part 2 of the dependent method refactoring: improved interaction with
implicit search (needed for oopsla paper)
more to come in this area, see e.g. #3346 (stanford edsl stuff)
reopens #13, which wasn't fixed properly before imo, anyway (have a look at -Xprint:typer output before this commit: a type that's not expressible in surface syntax is inferred -- also removed duplicate test file)
closes #3731: co-evolve type alias type symbols when their rhs is
updated and they are referenced by type selections (see typemap)
review by odersky
|