summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* fixed typoMartin Odersky2010-12-021-1/+1
|
* Reverted delayed init because of two failing testsMartin Odersky2010-12-021-87/+5
|
* delayed init now supportedMartin Odersky2010-12-026-6/+130
|
* Some cruft which finally got on my nerves enoug...Paul Phillips2010-12-012-47/+38
| | | | | | | | Some cruft which finally got on my nerves enough to decruft. No more getClass2 and getModule2 uses in Definitions, since that transition was completed in the time of my grandpappy. (The implementations remain, quiescent.) No review.
* A patch authored by martin to fix one of the bi...Paul Phillips2010-12-011-3/+7
| | | | | | | | | | | | | A patch authored by martin to fix one of the big outstanding issues with -Ycheck. The typer had a vision of the world which fell to pieces if presented with a tree from after phase constructors. Now it is wiser: perhaps a bit sadder as well, but every typer must face this day sooner or later. Also removed the various passing tests from test/checker-tests, but still plenty of fascinating failures in there for anyone interested in helping push to the finish line! No review.
* More fiddling with checkSensible.Paul Phillips2010-12-014-25/+42
| | | | | | | | | | warnings. Fixed some bugs revealed by said warnings, and made some minor changes to avoid warnings. (Technically it's not a bug to have unrelated classes compare as equal, but it so often is a bug that it behooves us not to do it intentionally so the warnings stand out.) Disabled the most useful warning for the moment since it'd be wrong with some frequency. No review.
* Bug in ListMap. Closes #4046, no review.Paul Phillips2010-12-011-1/+1
|
* Taking retronym's advice on increasing Universa...Paul Phillips2010-12-011-2/+4
| | | | | | Taking retronym's advice on increasing UniversalFn transparency. No review.
* Some collections overrides for more efficient t...Paul Phillips2010-12-014-7/+25
| | | | | | Some collections overrides for more efficient toSeq and toBuffer where possible. Closes #2972, review by malayeri.
* Parser relaxation so that one can name the type...Paul Phillips2010-11-301-13/+8
| | | | | | | Parser relaxation so that one can name the type variables in a constructor pattern match: this is a prerequisite to realizing the full potential of gadts. (Nothing new works here however.) No review.
* Found several minor thigns wrong with checkSens...Paul Phillips2010-11-303-22/+53
| | | | | | | Found several minor thigns wrong with checkSensible, which tries to issue warnings for comparisons which will always be true or false. No review.
* Deprecated the @serializable annotation, introd...Lukas Rytz2010-11-3077-220/+208
| | | | | | | | | | | | | | | | | | | Deprecated the @serializable annotation, introduce a new trait "scala.Serializable" which has to be extended instead (cross-platform). Known issues: - Companion objects of serializable classes (including case classes) are automatically made serializable. However, they don't extend "Serializable" statically because of the known difficulty (should be done before typing, but hard). - Writing "case class C() extends Serializable" gives "error: trait Serializable is inherited twice" - Functions are serializable, but don't extend Serializable dynamically (could be fixed by making FunctionN Serializable - shouldn't we?) Note that @SerialVersionUID continues to be an annotation; it generates a static field, which is not possible otherwise in scala. Review by dragos, extempore. Question to dragos: in JavaPlatform.isMaybeBoxed, why is there a test for "JavaSerializableClass"? Is that correct?
* It looks like the fix for #2318 was causing pro...Paul Phillips2010-11-303-4/+14
| | | | | | | It looks like the fix for #2318 was causing problems, so I gave it some more graceful failure. Leaving #2318 open because the implementation could still work harder to find the right method. No review.
* The initial implementation of TraversableOnce c...Paul Phillips2010-11-2921-79/+79
| | | | | | | | | | | | | | | | | | The initial implementation of TraversableOnce could not supply concrete methods or even signatures for map and flatMap because they have different signatures in Iterator and TraversableLike. But we can take another approach which works out as nicely: 1) Create implicits which install those methods and flatten on TraversableOnce instances. 2) Generalize the signatures of flatten and flatMap to work with A => TraversableOnce[B] instead of A => Traversable[B]. And voila, you can mix and match Iterators and Traversables in a for comprehension, map, flatMap, and flatten, without the tedious process of sprinkling .iterator or .toList around to appease the compiler. No review.
* Fleshed out Equiv[T] so that it can be used in ...Paul Phillips2010-11-291-26/+43
| | | | | | Fleshed out Equiv[T] so that it can be used in a manner similar to Ordering[T]. No review.
* "I invite everyone to change this rule, and obs...Paul Phillips2010-11-293-29/+23
| | | | | | | | | | | | | | | | | | | | | "I invite everyone to change this rule, and observe what breaks!" This much beloved comment from #1208 has been on my radar for two years. The worm has turned. Closes #1208. The inferred type of an object is now Foo.type instead of "object Foo". What once was this: scala> val x: Map[Int, Singleton] = Map(1 -> None) <console>:5: error: type mismatch; found : (Int, object None) required: (Int, Singleton) Now exudes a pleasing aura of workingness: scala> val x: Map[Int, Singleton] = Map(1 -> None) x: Map[Int,Singleton] = Map(1 -> None) No review.
* Adding some more unwrapping to unwrap. No review.Paul Phillips2010-11-281-2/+9
|
* Did some more polishing on the infamous partial...Paul Phillips2010-11-282-3/+7
| | | | | | Did some more polishing on the infamous partial function error message. No review.
* Moved sigint handler to InterpreterLoop and mad...Paul Phillips2010-11-284-17/+35
| | | | | | Moved sigint handler to InterpreterLoop and made it discriminate based on contents of current line. No review.
* Fleshed out the mock code a little further so i...Paul Phillips2010-11-282-1/+71
| | | | | | | | | | | | | | | | | | | Fleshed out the mock code a little further so it's easy for closures to become SAMs. // implicit not necessary, but improves fun factor scala> implicit def mkUFn(x: AnyRef) = scala.tools.reflect.UniversalFn(x) mkUFn: (x: AnyRef)scala.tools.reflect.UniversalFn scala> (() => 5*5*5).as[java.util.concurrent.Callable[Int]] res1: java.util.concurrent.Callable[Int] = <function1> scala> res1.call res2: Int = 125 No review.
* Some hardening of the repl's internals extracte...Paul Phillips2010-11-276-58/+98
| | | | | | Some hardening of the repl's internals extracted from a more interesting patch in progress. No review.
* Followed up on the claim that wrapArray can be ...Paul Phillips2010-11-271-13/+1
| | | | | Followed up on the claim that wrapArray can be removed. No review.
* Some cleanups in the *Runners and a few compile...Paul Phillips2010-11-277-17/+38
| | | | | | Some cleanups in the *Runners and a few compiler I/O conveniences. No review.
* Refactored parallel collections for pluggable t...Aleksandar Pokopec2010-11-2713-49/+50
| | | | | | | | Refactored parallel collections for pluggable task support implementations. No review.
* Temporarily disabled varargs annotation on cons...Aleksandar Pokopec2010-11-271-7/+8
| | | | | | | Temporarily disabled varargs annotation on constructors. No review.
* Some work on error messages, somewhat based on ...Paul Phillips2010-11-262-20/+27
| | | | | | Some work on error messages, somewhat based on ideas in #3092. No review.
* Seeing if I can unbreak things without actually...Paul Phillips2010-11-263-35/+29
| | | | | | Seeing if I can unbreak things without actually removing the visible motivation for the whole exercise. No review.
* Making the installation of the repl sigint hand...Paul Phillips2010-11-263-8/+25
| | | | | | | Making the installation of the repl sigint handler take place less eagerly. And more relevantly to recent hangs, made the repl only create daemon threads. No review.
* A new totally safe signal manager, along with a...Paul Phillips2010-11-2610-80/+385
| | | | | | | | | | | | | | | | | | | A new totally safe signal manager, along with all the support code needed for that. See the classes in scala.tools.reflect.* for interesting new weapons. Also includes inaugural handy usage: scala> val x = 10 x: Int = 10 scala> while (true) () [ctrl-C] Execution interrupted by signal. scala> x res1: Int = 10 No review, but feedback welcome.
* A manifest init order issue motivates some shuf...Paul Phillips2010-11-262-37/+34
| | | | | | A manifest init order issue motivates some shuffling around and making confusing identifiers more explicit. No review.
* Changes to the vector class that will be needed...Aleksandar Pokopec2010-11-261-1/+10
| | | | | | | Changes to the vector class that will be needed for ParVector. Review by Rompf.
* You shall not pass the testing stage when abort...Hubert Plociniczak2010-11-261-2/+2
| | | | | | | You shall not pass the testing stage when abort crashes the resident compiler. previously it succeeded even though the error message was printed. Review by phaller
* Adapt nested objects properly.Hubert Plociniczak2010-11-261-5/+4
|
* I keep forgeting which phase the browser is cur...Hubert Plociniczak2010-11-264-9/+8
| | | | | | I keep forgeting which phase the browser is currently showing, so added phase name. No review
* Further work on #3621.Aleksandar Pokopec2010-11-261-9/+9
| | | | | No review.
* In the absence of known reasons why some except...Paul Phillips2010-11-262-10/+5
| | | | | | | | In the absence of known reasons why some exceptions are intercepted or have their stack trace printed and others fly unchallenged, changed script and object runners to handle everything consistently when an exception is thrown. Closes #3978 again, no review.
* Added toParIterable, toParSeq, toParSet and toP...Aleksandar Pokopec2010-11-2516-15/+129
| | | | | | | Added toParIterable, toParSeq, toParSet and toParMap conversions. No review.
* Temporarily reverted sun.misc.* using code unti...Paul Phillips2010-11-252-7/+10
| | | | | | Temporarily reverted sun.misc.* using code until reflective version is complete. No review.
* Further fixes some issues for #3621.Aleksandar Pokopec2010-11-251-3/+15
| | | | | Review by Rytz.
* Changing EnclosingMethod generation not to drop...Paul Phillips2010-11-251-1/+0
| | | | | | | | | Changing EnclosingMethod generation not to drop the trailing $ from the name of the container class. I'm sure this was done for some reason but proguard objects rather strenuously (and fails) because it can't find the method, since it says it's in the class but is really in the object. Review by dragos.
* Fix for #3621.Aleksandar Pokopec2010-11-249-9/+147
| | | | | | | Added varargs annotation. Review by Rytz.
* Applied patch from davetron5000, improving docu...Iulian Dragos2010-11-242-26/+62
| | | | | | Applied patch from davetron5000, improving documentation on ProductN and FunctionN traits. Closes #4021.
* Quickfix for #3993 before a real fix is done.Eugene Vigdorchik2010-11-241-1/+1
|
* Added Presentation compiler stress tester.Martin Odersky2010-11-231-0/+204
|
* Some cleanup (mainly in Typers).Hubert Plociniczak2010-11-225-55/+27
|
* Fixes #3630.Aleksandar Pokopec2010-11-223-1/+12
| | | | | Review by extempore.
* Make interrupts non-interruptible, otherwise th...Eugene Vigdorchik2010-11-211-1/+7
| | | | | | Make interrupts non-interruptible, otherwise the interrupt exception can just go direct to the user (IDE). Review by odersky.
* Added some docs.Martin Odersky2010-11-201-1/+11
|
* A little IDE hardeningMartin Odersky2010-11-201-1/+3
|
* Fixes #3647, closes #3647, adds a test case for...Aleksandar Pokopec2010-11-191-4/+3
| | | | | | | | Fixes #3647, closes #3647, adds a test case for it, and a missing test case for #3935. No review.