summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Minor, mostly agreed upon changes to reflection...Paul Phillips2011-07-117-58/+54
| | | | | Minor, mostly agreed upon changes to reflection api, review by odersky.
* Baby-steps towards getting actual runtime refle...Martin Odersky2011-07-114-6/+82
| | | | | | Baby-steps towards getting actual runtime reflection. Made runtime.Universe not crash when initializing.
* Fixes #4398.Aleksandar Pokopec2011-07-111-6/+10
| | | | | Review by extempore.
* Fixes #4326.Aleksandar Pokopec2011-07-111-0/+17
| | | | | No review.
* Fixes #4709.Aleksandar Pokopec2011-07-112-3/+9
| | | | | Review by extempore.
* Fixes #4723.Aleksandar Pokopec2011-07-111-1/+1
| | | | | Review by extempore.
* Making empty streams serializable.Aleksandar Pokopec2011-07-111-1/+1
| | | | | No review.
* Fixes #4761.Aleksandar Pokopec2011-07-113-8/+14
| | | | | | | This changes the signature of flatten - I do not see how to use a @bridge annotation here, since after erasure both the bridge and the original method have the same signature. Review by extempore.
* Refactored reflection into reflect.api and refl...Martin Odersky2011-07-1132-1610/+2429
| | | | | | Refactored reflection into reflect.api and reflect.internal. Severed the last remaining dependency on reflect.generic. Review by extempore.
* Moved a warning behind -Xlint.Paul Phillips2011-07-093-9/+15
| | | | | meant for --grep to look in checkfiles too, and now it does. No review.
* Fixes some remaining formatting issues.Kato Kazuyoshi2011-07-097-12/+11
|
* Fix for failing test, review by extempore.Kato Kazuyoshi2011-07-094-5/+5
|
* ByteCodecs move to reflect.internal.Martin Odersky2011-07-085-10/+9
|
* Fixes SI-4759Philipp Haller2011-07-071-10/+17
|
* fixed svn props and file headersmichelou2011-07-076-4/+31
|
* Made scratchpad use replToString.Martin Odersky2011-07-072-2/+8
|
* Created simple infrastructure for creating muta...Paul Phillips2011-07-069-16/+53
| | | | | | | | | | | | Created simple infrastructure for creating mutable sets and maps which are automatically cleared after each compilation run. Since I am not too familiar with the mechanics of the presentation compiler I'm not sure this addresses the problem, or that it doesn't clear something which shouldn't be cleared. Also, this is only a sampling of possible mutable sets and maps: let me know if it does the job and I can expand it. Review by dragos.
* Fixed a logic error in debuglog which was turni...Paul Phillips2011-07-061-1/+1
| | | | | | Fixed a logic error in debuglog which was turning debugging output into a neverending party. No review.
* Removed redundant field. No review.Martin Odersky2011-07-061-2/+0
|
* Fixing two problems in Global.scala: crashes du...Martin Odersky2011-07-061-2/+2
| | | | | | | Fixing two problems in Global.scala: crashes during logs of import completions + interruprts at possibly inconsistent states. Review by dotta.
* Minor fixes to Scaladoc man page.Kato Kazuyoshi2011-07-061-2/+2
|
* Add a test for #4421 and clean up a little.Kato Kazuyoshi2011-07-061-8/+8
|
* Adds support for @throws in ScalaDoc.Kato Kazuyoshi2011-07-061-1/+10
|
* Changes semantics so that protected access rule...Martin Odersky2011-07-061-11/+14
| | | | | | | Changes semantics so that protected access rule (selector must be subclass of current class) does not hold for type members. Fixes t4737. Review by extempore. Spec change in a seperate commit.
* Fix to handling of imports in namers to make ID...Martin Odersky2011-07-062-0/+5
| | | | | | Fix to handling of imports in namers to make IDE structure building work correctly.
* scratchpad works in interactive REPL; ready to ...Martin Odersky2011-07-067-78/+154
| | | | | scratchpad works in interactive REPL; ready to be integrate in Eclipse.
* Reverts r18939.Iulian Dragos2011-07-062-18/+0
|
* Don't populate 'originalOwner' in presentation ...Iulian Dragos2011-07-062-2/+16
| | | | | | | | Don't populate 'originalOwner' in presentation compiler runs. This is a source of memory leaks, as the map is never cleared. A better, more consistent mechanism should be developed for such maps, and ensure they are cleared on a new Run, or in resetTyper. no review.
* Fixing Gen* builder dispatch so that methods th...Aleksandar Pokopec2011-07-052-20/+40
| | | | | | | | | Fixing Gen* builder dispatch so that methods that require an implicit builder factory decide to run in parallel if the builder is a combiner, rather than if the builder factory is parallel. Review by odersky.
* Fixed a bug in the optimizer which was preventi...Paul Phillips2011-07-048-58/+51
| | | | | | | | | | | | | | | | | | | | | | | Fixed a bug in the optimizer which was preventing private methods from being inlined. Also relaxes a condition related to the "liftedTry" problem: the inliner has to exclude certain methods from consideration if there is a value on the stack and the method being inlined has exception handlers. The new condition is as before, except that it does not exclude methods of the "try/finally" variety (i.e. finalizers, but no other exception handlers.) This is necessary to optimize this common pattern: @inline private def foo(body: => Unit) { val saved = something try body finally something = saved } The closure for "body" can be fully eliminated, but only if the contents of foo can be inlined into the caller. Closes #4764, review by rompf.
* corrected typo in scaladoc commentmichelou2011-07-041-3/+3
|
* quick fix to get the build going again on Java 1.5Adriaan Moors2011-07-041-1/+2
|
* Towards a scratchpad functionality for the IDEMartin Odersky2011-07-049-5/+373
|
* Discovered another impressive source of unneces...Paul Phillips2011-07-0443-49/+49
| | | | | | | | | | Discovered another impressive source of unnecessary garbage is every collection creating a new GenericCanBuildFrom for every map ever performed. They can all use the same one: they all have the same implementation. It looks like tiark had already figured this out and done it for Vector: I followed with the other fifty. I really haven't the least idea who to have review most things. No review.
* Hard to explain garbage led me to this innocent...Paul Phillips2011-07-041-0/+1
| | | | | | | | | | | | Hard to explain garbage led me to this innocent seeming change. Not that innocent. A function like this should create no garbage: final def f[T](xs: List[T], num: Int) { if (num > 0) f(Nil ::: xs ::: Nil, num - 1) } Instead it was creating a lot. No review.
* Looking forward to working positions.Paul Phillips2011-07-031-5/+10
|
* Modified return type inference not to allow T* ...Paul Phillips2011-07-032-1/+22
| | | | | | | | | | | | | | | Modified return type inference not to allow T* to leak from varargs methods. Since I don't know what is supposed to be done about eta expansion of these methods, I left the behavior as it was (except the return type) and a boolean val in Types to change it. def id[T](xs: T*) = xs etaExpandKeepsStar = true // (id[Int] _) is Int* => Seq[Int] etaExpandKeepsStar = false // (id[Int] _) is Seq[Int] => Seq[Int] References #4176, leaving open pending resolution of eta expansion. Review by odersky.
* Logic bug in repl :paste parsing, no review.Paul Phillips2011-07-031-1/+1
|
* evalOnce needs to pack the type before using it...Paul Phillips2011-07-031-10/+25
| | | | | | evalOnce needs to pack the type before using it on new valdefs to avoid existential mismatches. Closes #3960, review by moors.
* Fixing -Xlint warnings, no review.Paul Phillips2011-07-032-5/+5
|
* Existentially quantified symbols, when read by ...Paul Phillips2011-07-021-2/+8
| | | | | | | Existentially quantified symbols, when read by the unpickler, do not have the existential flag set. This leads to failure. This patch seeks improvement. Closes #4757, review by odersky.
* Fixed a bug involving classOf[Foo] having the w...Paul Phillips2011-07-012-3/+11
| | | | | | | Fixed a bug involving classOf[Foo] having the wrong erasure. Luckily I had only days ago deciphered the unique handling of classOf, so I knew what was up. Closes #4753, review by odersky.
* Stable hashCodes for case objects.Paul Phillips2011-07-012-11/+27
| | | | | | | | | | | | Somehow case objects fell through the cracks and have had default hashCode implementations, leading to new hashCodes on each jvm run. Now we use the productPrefix, and inline it right into the bytecode. scala> None.## == "None".## res0: Boolean = true Closes #4752, no review.
* Fixed a path issue in partest, no review.Paul Phillips2011-07-013-7/+10
|
* Fixes scaladoc layout for function arguments wi...Vlad Ureche2011-07-011-2/+2
| | | | | | Fixes scaladoc layout for function arguments with default values. Contributed by Ruediger Keller. Closes SI-4588, no review.
* Keep BufferedSource from losing buffered data w...Paul Phillips2011-07-011-10/+49
| | | | | | Keep BufferedSource from losing buffered data when a derivative iterator is created via getLines. Closes #4671, #4662, no review.
* Further refinement of the tiark RefinedType patch.Paul Phillips2011-06-301-4/+3
| | | | | I think this is fastest and simplest both. Review by rompf.
* Fix for unfortunate bug in Range.init.Paul Phillips2011-06-301-1/+1
|
* Restored tiark's RefinedType-exclusion fast pat...Paul Phillips2011-06-301-5/+7
| | | | | | | | | | | | Restored tiark's RefinedType-exclusion fast path for implicit search. The issue was that in a subtype check like lhs <:< { val someName } ...you cannot determine it is impossible if the left hand side is an abstract type, because you don't know what its members will be. Review by rompf.
* Having established that r25051 is not responsib...Paul Phillips2011-06-301-8/+2
| | | | | | Having established that r25051 is not responsible for the compilation issue with scalaz, it is hereby restored. Review by moors.