summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [scaladoc] Fixes issue with code block in scala...Gilles Dubochet2011-01-211-124/+149
| | | | | | | [scaladoc] Fixes issue with code block in scaladoc attribute (which were wrongly attributed to main comment, instead of attribute). Review by pedrofurla.
* getLinkPos now removes the unit it loaded.Martin Odersky2011-01-211-0/+2
|
* Trying to fix problem in getLinkPos.Martin Odersky2011-01-211-1/+1
|
* Better replays.Martin Odersky2011-01-214-44/+80
|
* The empty string commit made me hungry to actua...Paul Phillips2011-01-212-2/+3
| | | | | | | The empty string commit made me hungry to actually know what's in stuff. Now it prints quotes around a string if it's empty or if either the first or last character is whitespace. No review.
* Deleted the former Process code in the compiler.Paul Phillips2011-01-218-233/+28
| | | | | things which used it to use sys.process. No review.
* A little debugging infrastructure for sys.process.Paul Phillips2011-01-211-20/+43
|
* Minor collections cleanups, no review.Paul Phillips2011-01-203-34/+33
|
* Defer a check from the typer to refcheck so the...Paul Phillips2011-01-203-3/+16
| | | | | | Defer a check from the typer to refcheck so the error message makes some sense. Closes #4174, review by rytz.
* Integrated contributed non-recursive implementa...Paul Phillips2011-01-206-28/+226
| | | | | | | | | | | | Integrated contributed non-recursive implementation of permutations, combinations, subsets, by EastSun. Also gave mutable Seqs an in-place transform method like the one Map has. And couldn't resist slightly reformulating a few set methods, because how can we settle for "forall(that.contains)" when we could have "this forall that". (Which is also what normal people hear when we talk about sets.) Closes #4060, #3644, review by moors.
* Made the empty string print as "" in the repl i...Paul Phillips2011-01-201-0/+1
| | | | | | | | | | | | | | Made the empty string print as "" in the repl instead of as nothing. This after being misled one too many times by a variation of this: scala> List[String]() res1: List[String] = List() scala> List[String]("") res2: List[String] = List() No review.
* The repl becomes more intense about making sure...Paul Phillips2011-01-203-8/+34
| | | | | | The repl becomes more intense about making sure you wanted file completion before offering it. Closes #4130, no review.
* Made partest update a checkfile even if it does...Paul Phillips2011-01-201-22/+20
| | | | | Made partest update a checkfile even if it doesn't exist. No review.
* Look even harder for attempts to sneak "this" i...Paul Phillips2011-01-205-4/+26
| | | | | | Look even harder for attempts to sneak "this" into superconstructor arguments, and improve positioning. Closes #4166, no review.
* Duplication elimination, no review.Paul Phillips2011-01-202-73/+82
|
* Added askLinkPos command for hyperlinking. Martin Odersky2011-01-204-4/+62
| | | | | | Fixed a problem noted by Iulian in completion. Review by vigdorchik
* Made ().## and null.## not crash anymore.Paul Phillips2011-01-202-15/+22
|
* Updated copyright notices to 2011Antonio Cunei2011-01-201173-1178/+1178
|
* introduce NullaryMethodType to disambiguate Pol...Adriaan Moors2011-01-2039-193/+280
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | introduce NullaryMethodType to disambiguate PolyType motivation: given `def foo[T]: (T, T)` and `type Foo[T] = (T, T)`, `foo.info` and `TypeRef(_, Foo, Nil).normalize` are both `PolyType(List(T), Pair[T, T])` uncurry has been relying on an ugly hack to distinguish these cases based on ad-hoc kind inference without this distinction, the type alias's info (a type function) would be transformed to `PolyType(List(T), MethodType(Nil, Pair[T, T]))` anonymous type functions are being used more often (see #2741, #4017, #4079, #3443, #3106), which makes a proper treatment of PolyTypes more pressing change to type representation: PolyType(Nil, tp) -> NullaryMethodType(tp) PolyType(tps, tp) -> PolyType(tps, NullaryMethodType(tp)) (if the polytype denoted a polymorphic nullary method) PolyType(Nil, tp) is now invalid the kind of a PolyType is * iff its resulttype is a NullaryMethodType or a MethodType (i.e., it's a polymorphic value) in all other cases a PolyType now denotes a type constructor NullaryMethodType is eliminated during uncurry pickling: for backwards compatibility, a NullaryMethodType(tp) is still pickled as a PolyType(Nil, tp), unpickling rewrites pre-2.9-pickled PolyTypes according to the expected kind of the unpickled type (similar to what we used to do in uncurry) a pickled PolyType(Nil, restpe) is unpickled to NullaryMethodType(restpe) a pickled PolyType(tps, restpe) is unpickled to PolyType(tps, NullaryMethodType(restpe)) when the type is expected to have kind * the rewrite probably isn't complete, but was validated by compiling against the old scalacheck jar (which has plenty of polymorphic nullary methods) nevertheless, this commit includes a new scalacheck jar summary of the refactoring: * PolyType(List(), tp) or PolyType(Nil, tp) or PolyType(parms, tp) if params.isEmpty ==> NullaryMethodType(tp) * whenever there was a case PolyType(tps, tp) (irrespective of tps isEmpty), now need to consider the case PolyType(tps, NullaryMethodType(tp)); just add a case NullaryMethodType(tp), since usually: - there already is a PolyType case that recurses on the result type, - the polytype case applied to empty and non-empty type parameter lists alike * tp.resultType, where tp was assumed to be a PolyType that represents a polymorphic nullary method type before, tp == PolyType(tps, res), now tp == PolyType(tps, NullaryMethodType(res)) * got bitten again (last time was dependent-method types refactoring) by a TypeMap not being the identity when dropNonConstraintAnnotations is true (despite having an identity apply method). Since asSeenFrom is skipped when isTrivial, the annotations aren't dropped. The cps plugin relies on asSeenFrom dropping these annotations for trivial types though. Therefore, NullaryMethodType pretends to never be trivial. Better fix(?) in AsSeenFromMap: `if(tp.isTrivial) dropNonContraintAnnotations(tp) else ...` TODO: scalap and eclipse review by odersky, rytz
* Updated check file for namesdefault test.Iulian Dragos2011-01-191-2/+2
|
* More on partest.Paul Phillips2011-01-1910-309/+128
| | | | | multiple-reporting-of-failures bug. No review.
* Removed the probe for integers in spec-matrix.Iulian Dragos2011-01-192-2/+1
|
* Fixed First/Second dependency problem in presen...Martin Odersky2011-01-193-7/+6
| | | | | Fixed First/Second dependency problem in presentation compiler.
* Simplifying some partest internal structure.Paul Phillips2011-01-193-81/+82
|
* Moved and removed a bunch of tests from pending.Paul Phillips2011-01-1915-111/+32
|
* There was a bunch of work adriaan and I did whi...Paul Phillips2011-01-193-11/+14
| | | | | | | There was a bunch of work adriaan and I did which ended up in some git backwaters. I think he is still working with the main code pieces but I didn't want to lose a couple comments/clarifications. No review.
* Made recent string optimization jvm-only.Paul Phillips2011-01-191-1/+1
|
* One element of the partest situation: Reporting...Paul Phillips2011-01-182-12/+10
| | | | | | One element of the partest situation: Reporting and recovering correctly when the compiler crashes. No review.
* What is, I think, the only possible solution to...Paul Phillips2011-01-183-0/+41
| | | | | | | What is, I think, the only possible solution to bug #4158 given the current ways of controlling implicits. Let's just be glad there's one instead of zero. Closes #4158, review by moors.
* Added a terminal type for echo reenable based o...Paul Phillips2011-01-181-1/+1
| | | | | Added a terminal type for echo reenable based on #4170. No review.
* Who knew system was such a popular sentence end...Paul Phillips2011-01-186-8/+8
| | | | | | Who knew system was such a popular sentence ending choice. Fixes some doc comments caught up in the s/// net, no review.
* A few bits of java code which use "" + x and ca...Paul Phillips2011-01-186-6/+6
| | | | | | A few bits of java code which use "" + x and can't be helped out by scala compiler optimizations. No review.
* Reverted to curried invokeDynamic to fix a prob...Martin Odersky2011-01-182-8/+8
| | | | | Reverted to curried invokeDynamic to fix a problem in typers.
* Completion related fix and cleanup.Eugene Vigdorchik2011-01-181-8/+3
|
* Cleaned up Dynamic.Martin Odersky2011-01-184-22/+23
|
* Allow box(unbox) elimination for the Null type,...Iulian Dragos2011-01-186-9/+65717
| | | | | | Allow box(unbox) elimination for the Null type, plus testing that specialization tests do not box too much. review by extempore.
* Updated project files to the new Scala nature I...Iulian Dragos2011-01-182-4/+5
| | | | | | Updated project files to the new Scala nature ID (new meaning nearly 2-years old). no review.
* second version of close #3649. no reviewLukas Rytz2011-01-183-13/+24
|
* test case close #3649. no reviewLukas Rytz2011-01-182-0/+5
|
* Removing code which I believe to be some debugg...Hubert Plociniczak2011-01-181-16/+1
| | | | | | Removing code which I believe to be some debugging statements. Causes infinite loop anyway. Review by odersky
* fixed typo. no reviewHubert Plociniczak2011-01-181-2/+2
|
* Disabled failing specialization test.Aleksandar Pokopec2011-01-172-3/+0
| | | | | No review.
* Added jdk1.5 version of the instrumented librar...Aleksandar Pokopec2011-01-171-1/+1
| | | | | | | Added jdk1.5 version of the instrumented library classes jar. No review.
* Added specialized test to ant build, and ported...Aleksandar Pokopec2011-01-174-4/+14
| | | | | | | | Added specialized test to ant build, and ported old specialized 'run' tests to check the number of boxings. No review.
* Adapted specialization tests to track number of...Aleksandar Pokopec2011-01-1725-8/+48
| | | | | | | Adapted specialization tests to track number of boxings. Review by dragos
* Added 'specialized' tests.Aleksandar Pokopec2011-01-1710-11/+959
| | | | | | | | | | Added a new test group - specialized. Modified partest to add a jar with instrumented classes to classpath when compiling and running tests. Added a primary version of the instrumented BoxesRuntime, and a script to produce a jar for it. Added the 'speclib' folder to partest files, which contains the jar with the instrumented classes. Review by dragos.
* Dynamic type added. Array creation optimized.Martin Odersky2011-01-165-15/+64
|
* Added doc commentMartin Odersky2011-01-161-0/+6
|
* Rollback changes to canRedefine.Eugene Vigdorchik2011-01-161-1/+1
|
* Do not redefine the symbol in a class file to p...Eugene Vigdorchik2011-01-161-1/+1
| | | | | | | Do not redefine the symbol in a class file to prevent spurious errors in IDE. IDE creates a second copy in owner scope and unlinks it when finished. Review by odersky