summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Merged revisions 24873 via svnmerge from Antonio Cunei2011-05-033-8/+11
| | | | | | | | | | | | https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24873 | dragos | 2011-05-03 12:16:55 +0200 (Tue, 03 May 2011) | 1 line Fixes #4527. Bridge methods are now correctly loaded by the bytecode reader. No warnings when optimizing for-loops. review by extempore. ........
* Merged revisions 24867-24868 via svnmerge from Antonio Cunei2011-05-0311-95/+51
| | | | | | | | | | | | | | | | | | | https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24867 | extempore | 2011-05-03 02:43:12 +0200 (Tue, 03 May 2011) | 2 lines Looks like the :type command was a casualty of a repl fix. Make :type command work, no review. ........ r24868 | plocinic | 2011-05-03 10:27:26 +0200 (Tue, 03 May 2011) | 3 lines rewrite of nested objects implementation. this time do not use bitmaps but normal double locking on module var. this approach is much cleaner and most importantly you get the binary compatibility for nested objects for free. review by odersky, dragos and whoever feels like it. ........
* Preparations for 2.9.0 RC3Antonio Cunei2011-05-023-4/+4
|
* Merged revisions 24830-24831,24834-24862 via sv...Antonio Cunei2011-05-02232-1584/+2228
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merged revisions 24830-24831,24834-24862 via svnmerge from https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24830 | extempore | 2011-04-26 21:00:24 +0200 (Tue, 26 Apr 2011) | 1 line Some solid progress on the pattern matcher, no review. ........ r24831 | odersky | 2011-04-27 12:26:39 +0200 (Wed, 27 Apr 2011) | 1 line More bridges in collections. Review by prokopec. ........ r24834 | extempore | 2011-04-27 20:35:47 +0200 (Wed, 27 Apr 2011) | 1 line Fixed inversion of fsc's exit code, closes #4519 no review. ........ r24835 | extempore | 2011-04-27 20:36:04 +0200 (Wed, 27 Apr 2011) | 2 lines Fixed a booch I made in io.Position's positioning. Closes #4498, no review. ........ r24836 | extempore | 2011-04-27 20:36:16 +0200 (Wed, 27 Apr 2011) | 1 line A little cleanup on a repl command, no review. ........ r24837 | extempore | 2011-04-27 20:36:32 +0200 (Wed, 27 Apr 2011) | 5 lines Trying to fix the pattern matcher took me into the lambda lifter, and I made some changes which seemed sensible to me. I'm going to be a stickler about eliminating mutable maps which hold mutable listbuffers. I could use some confirmation that I didn't somehow break the world: review by dragos. ........ r24838 | extempore | 2011-04-27 20:36:47 +0200 (Wed, 27 Apr 2011) | 4 lines Trying out a different strategy for restoring terminal settings so we don't have a list of hardcoded terminal types. Now it saves the terminal settings on script start and restores those on exit. Closes #4170, review by rytz. ........ r24839 | extempore | 2011-04-28 01:49:27 +0200 (Thu, 28 Apr 2011) | 1 line Cleaned up some hopelessly atrophied documentation, no review. ........ r24840 | extempore | 2011-04-28 03:10:22 +0200 (Thu, 28 Apr 2011) | 4 lines Upgraded -d so you can output classes directly to a jar. Very (very) loosely based on a patch from dmharrah. Like dmharrah before me, I see little if any change in compile times, which I find difficult to explain. Closes #27, review by dmharrah. ........ r24841 | extempore | 2011-04-28 17:12:42 +0200 (Thu, 28 Apr 2011) | 5 lines Improvements to the AST browser contributed by Yuvi Masory. Uses Nimbus LAF when available and improves readability by padding components. Adds menu items and key bindings for expanding and contracting nodes, closing the browser and continuing compilation, and closing the browser and aborting. No review. ........ r24842 | extempore | 2011-04-28 18:23:45 +0200 (Thu, 28 Apr 2011) | 15 lines Improved the error message for another of the most common situations I hear about in newbieland. It could be taken further. If compilation fails due to an unimplemented abstract method, and there is a concrete method of the same name and arity, it will do a pairwise analysis of the parameters and attempt to further explain where you went off the beam if it feels it can do so sensibly. Such as in the test case: % scalac S.scala S.scala:1: error: class S needs to be abstract, since method g in class J of type (y: Int,z: java.util.List)Int is not defined (Note that java.util.List does not match java.util.List[String]. To implement a raw type, use java.util.List[_]) class S extends J { ^ one error found No review. ........ r24843 | extempore | 2011-04-28 18:26:05 +0200 (Thu, 28 Apr 2011) | 11 lines I wrote a warning when nullary methods return Unit. I wimped out of including it in this patch because we had about 200 of them, and that's what is fixed in this patch. I will add the warning to some kind of "-Xlint" feature after 2.9. This is motivated at least partly by the resolution of #4506, which indicates the distinction between "def foo()" and "def foo" will continue to jab its pointy stick into our eyes, so I believe we have a minimal duty of at least following our own advice about what they mean and not making a semirandom choice as to whether a method has parens or not. Review by community. ........ r24844 | odersky | 2011-04-29 13:07:56 +0200 (Fri, 29 Apr 2011) | 1 line Fixes #4525. No review. ........ r24845 | plocinic | 2011-04-29 16:27:35 +0200 (Fri, 29 Apr 2011) | 1 line remove now redundant check (see #4426). review by extempore ........ r24846 | plocinic | 2011-04-29 16:27:40 +0200 (Fri, 29 Apr 2011) | 1 line Closes #4457. Review by odersky ........ r24847 | odersky | 2011-04-29 17:35:37 +0200 (Fri, 29 Apr 2011) | 1 line Ignore type errors raised in later phases that are due to mismatching existentials. Quick fix to address lift build failures. Review by dragos. ........ r24848 | odersky | 2011-04-29 18:02:53 +0200 (Fri, 29 Apr 2011) | 1 line Second version of trying to avoid the lift crasher bug. ........ r24849 | odersky | 2011-04-29 18:13:31 +0200 (Fri, 29 Apr 2011) | 1 line Issuing warnings with detailed info when we encounter the lift crasher case. ........ r24850 | michelou | 2011-04-29 21:41:12 +0200 (Fri, 29 Apr 2011) | 2 lines removed legacy library code (package scala.mobile) ........ r24851 | extempore | 2011-04-29 22:13:10 +0200 (Fri, 29 Apr 2011) | 4 lines Fixing the pattern matcher regression I introduced between rc1 and rc2. Not done with this situation but at least I managed to boil out the big problem and keep my five closed pattern matcher tickets to boot. Closes #4523, no review. ........ r24852 | extempore | 2011-04-30 00:40:03 +0200 (Sat, 30 Apr 2011) | 1 line Making further unapply regressions less likely, no review. ........ r24853 | extempore | 2011-04-30 22:00:39 +0200 (Sat, 30 Apr 2011) | 3 lines After having to update the code for someone else, ran damarau levenshtein on trunk again. Patchwise, I guess correcting spelling errors in comments is about as safe as it gets. No review. ........ r24854 | extempore | 2011-04-30 22:01:00 +0200 (Sat, 30 Apr 2011) | 1 line Don't crash the pickler with erroneous types. Review by odersky. ........ r24855 | extempore | 2011-04-30 22:01:25 +0200 (Sat, 30 Apr 2011) | 4 lines Completely to my surprise, found that fixing all those sequence issues revealed that the pattern matcher can catch a lot more inexhaustive cases than it has been catching. Fixed most of the inexhaustive matches in the compiler, which had become a bit warnier. No review. ........ r24856 | extempore | 2011-04-30 22:01:48 +0200 (Sat, 30 Apr 2011) | 2 lines A few minor cleanups involving logging messages, assertion messages, compiler warnings, and other innocuous matters. No review. ........ r24857 | extempore | 2011-05-01 07:10:09 +0200 (Sun, 01 May 2011) | 2 lines Don't issue a deprecation warning if the deprecated method is being called from a bridge method. No review. ........ r24858 | extempore | 2011-05-01 07:10:58 +0200 (Sun, 01 May 2011) | 4 lines Since I don't want to commit anything "interesting" until we ship 2.9, a few uninteresting cleanups involving how types are printed, getting some debugging code in shape to prepare for the long winter ahead, etc. No review. ........ r24859 | extempore | 2011-05-01 07:43:05 +0200 (Sun, 01 May 2011) | 2 lines Realized how noisy the @deprecated-takes-two-arguments message was and quieted it down. Oh, and documented the arguments. No review. ........ r24860 | extempore | 2011-05-01 20:15:49 +0200 (Sun, 01 May 2011) | 7 lines Reducing the sbt launcher footprint by eliminating val references which go through the scala package object, since they lead to otherwise unnecessary classes becoming required at startup. Mostly this means library files with constructors like "Iterator.empty" or "Stream.continually" receive a direct import of that companion. The one slightly less than cosmetic change was moving the strange xml value "$scope" back into Predef, because otherwise I have to touch the xml code generation. No review. ........ r24861 | extempore | 2011-05-01 21:58:44 +0200 (Sun, 01 May 2011) | 2 lines Added a @bridge'd $scope back to scala package object for binary compat. No review. ........ r24862 | extempore | 2011-05-02 05:28:58 +0200 (Mon, 02 May 2011) | 4 lines Figuring it couldn't hurt if more people had a command of some of our binary compatibility impacting code, I went over the ModuleDef elimination with my clarify stick and made the machinery more transparent, to me anyway. Review by plocinic. ........
* Preparations for RC2Antonio Cunei2011-04-263-4/+4
|
* Merged revisions 24803-24820 via svnmerge from Antonio Cunei2011-04-26163-784/+1163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24803 | odersky | 2011-04-21 19:21:28 +0200 (Thu, 21 Apr 2011) | 1 line Added bridge method capability to compiler. Some tweaks to reflect generic. No review (yet). ........ r24804 | odersky | 2011-04-22 00:41:20 +0200 (Fri, 22 Apr 2011) | 1 line Some more tweaks to the bridge scheme. ........ r24805 | extempore | 2011-04-22 03:47:32 +0200 (Fri, 22 Apr 2011) | 1 line New starr based on r24804, no review. ........ r24806 | odersky | 2011-04-22 11:21:28 +0200 (Fri, 22 Apr 2011) | 1 line Fixed spurious qualification of types that are locally quantified. Review by extempore. ........ r24807 | extempore | 2011-04-23 00:01:22 +0200 (Sat, 23 Apr 2011) | 2 lines Fixing a BaseBerrySethi bug I introduced in r19842. Patch by buraq, no review. ........ r24808 | eugenevigdorchik | 2011-04-23 14:18:53 +0200 (Sat, 23 Apr 2011) | 1 line Introduce new request for informing the presentation compiler of files deletion. Review by odersky. ........ r24809 | extempore | 2011-04-23 17:14:59 +0200 (Sat, 23 Apr 2011) | 2 lines Strip unused pattern variable bindings out before performing match translation. Closes #4269, no review. ........ r24810 | extempore | 2011-04-23 18:56:32 +0200 (Sat, 23 Apr 2011) | 1 line Reverted a jline commit which had broken history search, no review. ........ r24811 | pedrofurla | 2011-04-23 23:11:32 +0200 (Sat, 23 Apr 2011) | 1 line Shows migration and it's message. Contributed by Simon Ochsenreither (soc). Review by malayeri. ........ r24812 | extempore | 2011-04-24 00:04:36 +0200 (Sun, 24 Apr 2011) | 5 lines Working my way through pattern matcher sequence issues mostly caused by the special handling of Lists. Also deleting all kinds of useless or almost useless code which is presently only clutter. Closes #2756, #2800, #3050, #3530, #3972, no review. ........ r24813 | odersky | 2011-04-24 12:18:44 +0200 (Sun, 24 Apr 2011) | 1 line Refined handling fo @bridge methods. Review by extempore. ........ r24814 | extempore | 2011-04-24 18:19:21 +0200 (Sun, 24 Apr 2011) | 1 line Updated a bunch of @deprecated annotations to have a version, no review. ........ r24815 | extempore | 2011-04-24 19:10:26 +0200 (Sun, 24 Apr 2011) | 1 line New starr based on r24814, no review. ........ r24816 | extempore | 2011-04-24 21:15:19 +0200 (Sun, 24 Apr 2011) | 1 line Enclosed the out of bounds index with some IOOB exceptions, no review. ........ r24817 | extempore | 2011-04-24 21:15:46 +0200 (Sun, 24 Apr 2011) | 2 lines Removed restriction on case classes having only two parameter lists. Closes #1333, no review. ........ r24818 | extempore | 2011-04-24 21:16:10 +0200 (Sun, 24 Apr 2011) | 2 lines Added warning when someone tries to return a non-Unit value from a Unit method, no review. ........ r24819 | odersky | 2011-04-24 22:13:40 +0200 (Sun, 24 Apr 2011) | 1 line Added a bunch of bridges to make ameliorate binary compatibility of new collections. Review by prokopec. Review by extempore. ........ r24820 | odersky | 2011-04-25 12:37:48 +0200 (Mon, 25 Apr 2011) | 1 line Temporarily moving interpreter.scala to pending. We need a more robust solution wrt heap size before we can bring it back. (interpreter scala randomly fails with OutOfMemoryError because it starts a new java process with default heap size. Depending on the configuration, default heap size is sometimes not enough.) ........
* Merged revisions 24795-24796,24798-24800 via sv...Antonio Cunei2011-04-2122-223/+281
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merged revisions 24795-24796,24798-24800 via svnmerge from https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24795 | kzys | 2011-04-20 16:37:39 +0200 (Wed, 20 Apr 2011) | 2 lines [scaladoc] kindFilter should switch show/hide anchor of package. Closes #4463. Review by malayeri. ........ r24796 | extempore | 2011-04-20 18:28:01 +0200 (Wed, 20 Apr 2011) | 1 line Some tweaks to slice to make it run faster, no review. ........ r24798 | extempore | 2011-04-20 22:43:37 +0200 (Wed, 20 Apr 2011) | 6 lines One of the blips in the performance charts seems to implicate some changes I made with slice to reduce the number of implementations and surface area for inconsistencies and bugs. Altering those changes in a more performance-mindful way, although I don't see anything here which is likely to help much. Also fixing some wrong documentation about copyToArray. No review. ........ r24799 | extempore | 2011-04-21 07:00:54 +0200 (Thu, 21 Apr 2011) | 6 lines There is still all kinds of code in the pattern matcher which I've been dragging forward (for years now) unclear on the need for it but having been burned too many times by its undocumented ways. Returned to the fray once again and encountered shocking success levels with the abatement stick. Dumped all kinds of unnecessary code (or so we can hope) and seem close to fixing some fundamental issues. But we've heard that before. No review. ........ r24800 | odersky | 2011-04-21 11:31:18 +0200 (Thu, 21 Apr 2011) | 1 line Made FreshRunReq a traceable exception, so that we can better spot problems in the IDE. ........
* Fixing an incomplete svnmerge; second, merge ag...Antonio Cunei2011-04-20361-3478/+5926
| | | | | Fixing an incomplete svnmerge; second, merge again from trunk.
* Fixing an incomplete svnmerge; first, revert to...Antonio Cunei2011-04-20327-5740/+3429
| | | | | Fixing an incomplete svnmerge; first, revert to r24726.
* Merged revisions 24783-24788 via svnmerge from Antonio Cunei2011-04-2042-1047/+1027
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24783 | malayeri | 2011-04-19 16:51:42 +0200 (Tue, 19 Apr 2011) | 1 line [scaladoc] CSS tweaks, changes to display of linear supertypes/known subclasses. Closes #4458. No review. ........ r24784 | malayeri | 2011-04-19 17:30:26 +0200 (Tue, 19 Apr 2011) | 1 line [scaladoc] Change URL when navigating Scaladoc, so as to allow linking to individual pages with the left frame intact. Patch submitted by Ruediger Keller. Closes #4473. No review. ........ r24785 | malayeri | 2011-04-19 17:38:17 +0200 (Tue, 19 Apr 2011) | 1 line [scaladoc] Removed some drop shadows from CSS, to improve readability. No review. ........ r24786 | prokopec | 2011-04-19 18:57:44 +0200 (Tue, 19 Apr 2011) | 5 lines Removed GenTravOnceLike and TravOnceLike, put their functionality to GenTravOnce and TravOnce. Remove immutable Gen* traits. Removing mutable Gen* traits. No review. ........ r24787 | pedrofurla | 2011-04-20 05:03:51 +0200 (Wed, 20 Apr 2011) | 1 line Makes entire package area clickable in the left panel. Contributed by Simon Ochsenreither (soc). Closes #4464. Review by malayeri. ........ r24788 | pedrofurla | 2011-04-20 05:33:58 +0200 (Wed, 20 Apr 2011) | 1 line Shows deprecation message only once. Contributed by Simon Ochsenreither (soc). Closes #4466. Review by malayeri. ........
* Merged revisions 24749-24771,24773-24774,24776-...Antonio Cunei2011-04-19305-3487/+5398
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merged revisions 24749-24771,24773-24774,24776-24779 via svnmerge from https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24749 | odersky | 2011-04-13 17:07:21 +0200 (Wed, 13 Apr 2011) | 1 line Fixes my part of #4283 by inserting another cast pre-emptively when an IllegalAccess error is possible in an erasure-inserted cast. Review by extempore. ........ r24750 | dragos | 2011-04-13 18:15:37 +0200 (Wed, 13 Apr 2011) | 1 line Warn when the jar file cannot be found when loading a plugin. no review. ........ r24751 | dragos | 2011-04-13 18:15:43 +0200 (Wed, 13 Apr 2011) | 1 line Closes #4283. no review. ........ r24752 | prokopec | 2011-04-13 18:31:42 +0200 (Wed, 13 Apr 2011) | 45 lines Refactoring the collections api to support differentiation between referring to a sequential collection and a parallel collection, and to support referring to both types of collections. New set of traits Gen* are now superclasses of both their * and Par* subclasses. For example, GenIterable is a superclass of both Iterable and ParIterable. Iterable and ParIterable are not in a subclassing relation. The new class hierarchy is illustrated below (simplified, not all relations and classes are shown): TraversableOnce --> GenTraversableOnce ^ ^ | | Traversable --> GenTraversable ^ ^ | | Iterable --> GenIterable <-- ParIterable ^ ^ ^ | | | Seq --> GenSeq <-- ParSeq (the *Like, *View and *ViewLike traits have a similar hierarchy) General views extract common view functionality from parallel and sequential collections. This design also allows for more flexible extensions to the collections framework. It also allows slowly factoring out common functionality up into Gen* traits. From now on, it is possible to write this: import collection._ val p = parallel.ParSeq(1, 2, 3) val g: GenSeq[Int] = p // meaning a General Sequence val s = g.seq // type of s is Seq[Int] for (elem <- g) { // do something without guarantees on sequentiality of foreach // this foreach may be executed in parallel } for (elem <- s) { // do something with a guarantee that foreach is executed in order, sequentially } for (elem <- p) { // do something concurrently, in parallel } This also means that some signatures had to be changed. For example, method `flatMap` now takes `A => GenTraversableOnce[B]`, and `zip` takes a `GenIterable[B]`. Also, there are mutable & immutable Gen* trait variants. They have generic companion functionality. ........ r24753 | prokopec | 2011-04-13 18:31:58 +0200 (Wed, 13 Apr 2011) | 3 lines Fixes and closes #4405. No review. ........ r24754 | prokopec | 2011-04-13 18:32:01 +0200 (Wed, 13 Apr 2011) | 3 lines Fixed some tests, renamed from Any to Gen. No review. ........ r24755 | prokopec | 2011-04-13 18:32:04 +0200 (Wed, 13 Apr 2011) | 3 lines Further fixes #4405. No review. ........ r24756 | prokopec | 2011-04-13 18:32:09 +0200 (Wed, 13 Apr 2011) | 3 lines Added test case for #4459. No review. ........ r24757 | extempore | 2011-04-13 21:00:56 +0200 (Wed, 13 Apr 2011) | 1 line New starr based on r24749. No review. ........ r24758 | dragos | 2011-04-13 21:12:57 +0200 (Wed, 13 Apr 2011) | 1 line Revert "Closes #4283. no review." because of failing tests. ........ r24759 | extempore | 2011-04-14 06:15:50 +0200 (Thu, 14 Apr 2011) | 2 lines Tests which run have to be called "Test". Fixes failing test and renames file to avoid ant's brainlessness, no review. ........ r24760 | extempore | 2011-04-14 08:38:35 +0200 (Thu, 14 Apr 2011) | 9 lines Doing a little polishing on the parallel collections refactor (which overall looks like a big improvement.) I went for some simpler wording and moved a number of scaladoc tags around because the rug had been pulled out from under their feet. This leaves a lot undone, but since many of the docs need to be reworded before they can move from e.g. SeqLike to GenSeqLike, and I'm not well informed on exactly how these abstractions are being presented, I stayed in the safe zone. Review by prokopec. ........ r24761 | phaller | 2011-04-14 11:11:10 +0200 (Thu, 14 Apr 2011) | 1 line Closed #4454. Applied patch provided in ticket. No review. ........ r24762 | dragos | 2011-04-14 15:48:00 +0200 (Thu, 14 Apr 2011) | 1 line This time, fixed #4283. no review. ........ r24763 | extempore | 2011-04-14 16:25:46 +0200 (Thu, 14 Apr 2011) | 4 lines Of late the test which fires up the window server, which has already been the source of undue quantities of inconvenience, has taken to hanging indefinitely when I run the test suite on a remote machine. Rope at end, goodbye test, no review. ........ r24764 | prokopec | 2011-04-14 18:09:33 +0200 (Thu, 14 Apr 2011) | 4 lines Adding some docs refactorings. Also, added some docs variables to Gen* traits that were missing. No review. ........ r24765 | extempore | 2011-04-14 21:33:39 +0200 (Thu, 14 Apr 2011) | 2 lines Some patches to jline, and new jar. Thanks to Kenji Matsuoka for improving the keybindings. No review. ........ r24766 | extempore | 2011-04-14 23:05:12 +0200 (Thu, 14 Apr 2011) | 3 lines Adds "since" field to @deprecated. Thanks to Simon Ochsenreither for the patch, as it's a change I've always wanted. Moving up in the glamorous world of scala commits! No review. ........ r24767 | extempore | 2011-04-14 23:06:14 +0200 (Thu, 14 Apr 2011) | 3 lines Various addenda to soc's patch: regenerating Product/Tuple/Function classes and AnyVal sources, making versioning consistent, etc. Closes #4477, no review. ........ r24768 | extempore | 2011-04-15 04:39:32 +0200 (Fri, 15 Apr 2011) | 3 lines Some mopping up having to do with deprecated gaining an argument, which may or may not cure scaladoc of its current assertion failure. No review. ........ r24769 | extempore | 2011-04-15 07:05:53 +0200 (Fri, 15 Apr 2011) | 1 line Fixing a couple more tests, no review. ........ r24770 | extempore | 2011-04-15 08:55:32 +0200 (Fri, 15 Apr 2011) | 6 lines Having been tortured by remorse ever since tiark told me that r23934 had made the hashmap slower, I crushed my previous efforts under the heel of my boot, threw all the types out the window, poured acid on them, and turned all the dials to the far other extreme. Pity the man who will sell his soul for a few CPU cycles. (I am that man.) Review by rompf. ........ r24771 | prokopec | 2011-04-15 09:54:54 +0200 (Fri, 15 Apr 2011) | 3 lines Couple of fixes to the usecases in docs. No review. ........ r24773 | kzys | 2011-04-15 18:12:22 +0200 (Fri, 15 Apr 2011) | 2 lines [scaladoc] Strike-through for deprecated symbols on the reference index. Closes #4471. Review by dubochet. ........ r24774 | extempore | 2011-04-15 23:03:44 +0200 (Fri, 15 Apr 2011) | 3 lines Added a script in tools for deploying maven artifacts locally, since it always takes me an eternity to figure out slash remember how to do it. No review. ........ r24776 | extempore | 2011-04-17 21:58:15 +0200 (Sun, 17 Apr 2011) | 2 lines Added releaseVersion and developmentVersion to Properties so people don't all have to parse the versionString. No review. ........ r24777 | extempore | 2011-04-17 23:28:03 +0200 (Sun, 17 Apr 2011) | 1 line Revised that last botched commit. No review. ........ r24778 | odersky | 2011-04-19 11:52:59 +0200 (Tue, 19 Apr 2011) | 1 line Trying to get build times down by refining implicit searches. Implicit infos associated with toplevel classes are cached now. Review by rompf. ........ r24779 | odersky | 2011-04-19 12:56:58 +0200 (Tue, 19 Apr 2011) | 1 line Further optimizations of implicits. Now, improves checks between static members are cached as well. Review by rompf. ........
* Merged revisions 24727-24728,24730-24734,24736-...Iulian Dragos2011-04-1329-139/+559
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merged revisions 24727-24728,24730-24734,24736-24746 via svnmerge from https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24727 | odersky | 2011-04-11 12:49:20 +0200 (Mon, 11 Apr 2011) | 1 line Closes #4390, unfortunately by taking the stricter standpoint. No review. ........ r24728 | odersky | 2011-04-11 12:50:59 +0200 (Mon, 11 Apr 2011) | 1 line FreshRunReq's are no longer suppressed when thrown in a respondGradually. ........ r24730 | malayeri | 2011-04-11 14:20:07 +0200 (Mon, 11 Apr 2011) | 1 line [scaladoc] Improve visual design and layout of Scaladoc, using contributions from Heather Miller. No review. ........ r24731 | malayeri | 2011-04-11 14:22:12 +0200 (Mon, 11 Apr 2011) | 1 line [scaladoc] Add missing file. No review. ........ r24732 | kzys | 2011-04-11 15:52:29 +0200 (Mon, 11 Apr 2011) | 2 lines [scaladoc] Closes #4452. Review by malayeri. ........ r24733 | kzys | 2011-04-11 15:53:45 +0200 (Mon, 11 Apr 2011) | 2 lines [scaladoc] Forget to add test case at r24732. No review. ........ r24734 | odersky | 2011-04-11 16:50:57 +0200 (Mon, 11 Apr 2011) | 1 line Closes #4402. Review by plocinic. ........ r24736 | extempore | 2011-04-11 22:20:04 +0200 (Mon, 11 Apr 2011) | 2 lines Pulled daemonized from the process API based on input from harrah. No review. ........ r24737 | odersky | 2011-04-12 16:40:34 +0200 (Tue, 12 Apr 2011) | 1 line Ensured invariant that notPRIVATE can be set only for PRIVATE members. ........ r24738 | dragos | 2011-04-12 16:42:10 +0200 (Tue, 12 Apr 2011) | 2 lines Made the 'onCompilerThread' flag a field, correctly indicating wether the work item was asked from the compiler thread or not. Fixes issues in the IDE. no review. ........ r24739 | kzys | 2011-04-12 16:48:39 +0200 (Tue, 12 Apr 2011) | 2 lines [scaladoc] Closes #4452 again. Review by malayeri. ........ r24740 | odersky | 2011-04-12 18:08:27 +0200 (Tue, 12 Apr 2011) | 1 line Closes #4275. Review by plocinic since this is the first code that treats errors as trees. As discussed, it would be good to use this pattern more systematically. ........ r24741 | odersky | 2011-04-12 18:18:27 +0200 (Tue, 12 Apr 2011) | 1 line Added test to pending. ........ r24742 | plocinic | 2011-04-12 19:12:24 +0200 (Tue, 12 Apr 2011) | 1 line Closes #4432. review by dragos ........ r24743 | plocinic | 2011-04-12 19:12:29 +0200 (Tue, 12 Apr 2011) | 1 line closes #4426. name mangling for private lazy vals that are lifted during explicitouter is now taken into account. this also handles lazy vals/objects inside anonymous classes. review by dragos. ........ r24744 | extempore | 2011-04-13 05:25:51 +0200 (Wed, 13 Apr 2011) | 2 lines An alteration to r24740 to fix failing test files/neg/sensitive.scala. Review by odersky. ........ r24745 | extempore | 2011-04-13 05:26:10 +0200 (Wed, 13 Apr 2011) | 2 lines An alteration to r24740 to fix failing test files/neg/protected-constructors. Review by odersky. ........ r24746 | extempore | 2011-04-13 05:26:27 +0200 (Wed, 13 Apr 2011) | 2 lines Test cases for #1071 and #4275 since I don't see a lot of test cases, hint hint, no review. ........
* Merged revisions 24573,24583-24584,24592-24604,...Antonio Cunei2011-04-11289-4603/+7031
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merged revisions 24573,24583-24584,24592-24604,24607-24612,24614-24646,24648,24651-24667, 24672-24706,24708-24717,24719-24724 via svnmerge from https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24573 | dragos | 2011-03-24 18:48:14 +0100 (Thu, 24 Mar 2011) | 1 line Added synchronous version of askStructure, needed by the IDE to avoid deadlocks. review by odersky. ........ r24583 | magarcia | 2011-03-25 15:40:35 +0100 (Fri, 25 Mar 2011) | 3 lines for Scala.NET bootstrapping. Given that flatten does not run in forMSIL mode, there may be several recursive activations of the case clause, and part of that activation state needs to be saved/restored. forJVM behavior remains unchanged. ........ r24584 | extempore | 2011-03-25 15:49:31 +0100 (Fri, 25 Mar 2011) | 5 lines I guess windows can show a < 500x difference and still give us confidence there isn't a 100,000x difference. Testing situation continues to confound and amaze. Trying to make 4279 not fail on windows, one more time and I will delete it and burn the bodies. No review. ........ r24592 | extempore | 2011-03-25 22:13:52 +0100 (Fri, 25 Mar 2011) | 3 lines Figured out why -Ydebug has been such a deathtrap for a while. I'm the culprit. Making -Ydebug less likely to kill a compile, no review. ........ r24593 | extempore | 2011-03-25 22:21:27 +0100 (Fri, 25 Mar 2011) | 2 lines Fixed the "poor resilience to error conditions" crasher mentioned in #3625, no review. ........ r24594 | kzys | 2011-03-25 23:55:19 +0100 (Fri, 25 Mar 2011) | 2 lines [scaladoc] Stop wiki syntax parsing inside HTML. Review by pedrofurla. ........ r24595 | kzys | 2011-03-26 00:08:19 +0100 (Sat, 26 Mar 2011) | 2 lines [scaladoc] Add a test for #4180. No review. ........ r24596 | kzys | 2011-03-26 01:39:35 +0100 (Sat, 26 Mar 2011) | 2 lines [scaladoc] Fix wiki formatting to close #4359. Review by malayeri. ........ r24597 | kzys | 2011-03-26 02:25:13 +0100 (Sat, 26 Mar 2011) | 2 lines [scaladoc] Closes #4371. Review by pedrofurla. ........ r24598 | kzys | 2011-03-26 04:26:40 +0100 (Sat, 26 Mar 2011) | 2 lines [scaladoc] Cleanup tests. No review. ........ r24599 | extempore | 2011-03-26 17:05:14 +0100 (Sat, 26 Mar 2011) | 2 lines Fix for cygwin: jline.UnixTerminal is now scala.tools.jline.UnixTerminal. No review. ........ r24600 | extempore | 2011-03-26 19:22:27 +0100 (Sat, 26 Mar 2011) | 2 lines Added some explanatory output when jline reader fails to create. No review. ........ r24601 | extempore | 2011-03-26 20:42:25 +0100 (Sat, 26 Mar 2011) | 1 line Some accumulated work and polish on classpath and jars. No review. ........ r24602 | extempore | 2011-03-26 20:42:44 +0100 (Sat, 26 Mar 2011) | 1 line Cleaning up util.Tracer and its usage in Erasure. No review. ........ r24603 | extempore | 2011-03-26 20:43:00 +0100 (Sat, 26 Mar 2011) | 3 lines Suppressed unnecessary checkcasts on Throwables which were letting AnyRefs reach the backend. Looks like this was my doing when trying to wake back up the icode checker. Closes #4393, no review. ........ r24604 | cunei | 2011-03-26 21:47:47 +0100 (Sat, 26 Mar 2011) | 4 lines Introducing xz compression in nightly builds. Also removed some obsolete targets related to the old 1.4 version. ........ r24607 | magarcia | 2011-03-27 16:41:46 +0200 (Sun, 27 Mar 2011) | 2 lines needed when compiling the (jdk2ivkm'd) Scala library with Scala.NET, and doesn't hurt in forJVM mode. ........ r24608 | extempore | 2011-03-27 17:37:15 +0200 (Sun, 27 Mar 2011) | 1 line Made :javap less crashy on windows, no review. ........ r24609 | extempore | 2011-03-27 21:46:12 +0200 (Sun, 27 Mar 2011) | 18 lines Fix for linked lists closes #4080 and proves my desire not to ship obviously broken code is even greater than my will to hold out for any help. I threw in a free fix for this which I noticed while in there. scala> scala.collection.mutable.LinkedList[Int]().head res0: Int = 0 Also was reminded how useless tests can be: val ten = DoubleLinkedList(1 to 10: _*) ten.insert(DoubleLinkedList(11)) // Post-insert position test require(ten.last == 11) Fortunately a test confirming buggy behavior still serves a purpose by breaking when you fix the bug which allowed it to pass, thus letting you fix the broken test too. Life's (very) little compensations. Linked list code should still be presumed broken. No review. ........ r24610 | extempore | 2011-03-28 01:27:05 +0200 (Mon, 28 Mar 2011) | 16 lines Trying to get fsc doing the right thing with respect to absolute and relative paths. My knowledge of the problem had heretofore been second hand, and my understanding of it incomplete. The real problem I have determined is that there are a bunch of different things which go wrong if relative paths start being resolved from a different base, each of which needs custom handling. classpath-style options, e.g. fsc -cp ../foo.jar path-style options, e.g. fsc -d ../mydir file arguments, e.g. fsc ../foo.scala So it was more work than I had realized, or I probably wouldn't have even touched it. But now it seems to be working as one would want. I also poured some readability onto the fsc help output. Closes #4395, no review, but community input would be great. ........ r24611 | extempore | 2011-03-28 05:10:44 +0200 (Mon, 28 Mar 2011) | 2 lines A paltry 570 cases failing in -Xcheckinit due to some uninitialized val or other. It is but a trifle! No review. ........ r24612 | extempore | 2011-03-28 09:34:04 +0200 (Mon, 28 Mar 2011) | 4 lines Learned an interesting lesson about having an implicit object with a "def apply(x: Any): List[String]" method imported into power mode. Let's just say this is not advised. This and other rough edges eliminated from power mode, no review. ........ r24614 | magarcia | 2011-03-28 15:59:16 +0200 (Mon, 28 Mar 2011) | 1 line (1) The msil library can now parse modreq and modopt, (2) bug fix in GenMSIL. review by rytz. Updated msil.jar coming soon. ........ r24615 | magarcia | 2011-03-28 18:00:13 +0200 (Mon, 28 Mar 2011) | 1 line msil.jar updated with changeset 24614 ........ r24616 | plocinic | 2011-03-28 18:21:52 +0200 (Mon, 28 Mar 2011) | 1 line Don't analyse symbols with error types. can happen for java symbols that are forced during the analysis. Partial fix for #1000238 in eclipse ide, related issue is in #4402. no review ........ r24617 | kzys | 2011-03-28 18:58:54 +0200 (Mon, 28 Mar 2011) | 2 lines [scaladoc] Remove whitespace around colon and parentheses. Closes #4372. Review by pedrofurla. ........ r24618 | extempore | 2011-03-28 21:20:58 +0200 (Mon, 28 Mar 2011) | 3 lines Added some implicitNotFound annotations to commonly used classes, and some documentation to Manifest. (Said documentation is invisible for the moment due to #4404.) No review. ........ r24619 | extempore | 2011-03-28 22:07:02 +0200 (Mon, 28 Mar 2011) | 2 lines Expanding the test which tries to use the collections from java. No review. ........ r24620 | extempore | 2011-03-28 23:44:33 +0200 (Mon, 28 Mar 2011) | 2 lines Looks like another java5/java6 difference gets me on a test. At least this time I was looking for that. No review. ........ r24621 | extempore | 2011-03-28 23:53:12 +0200 (Mon, 28 Mar 2011) | 3 lines Removed some bitrotted ant directives which were keeping us from getting Manifest docs. Thanks to dmharrah. Also removed RichUnit, fare thee well. Closes #4404, no review. ........ r24622 | extempore | 2011-03-28 23:57:47 +0200 (Mon, 28 Mar 2011) | 4 lines Eliminated option -Xwarninit, which is warning about a change which took place 2.5 years ago and is only likely to add to option confusion at this point. No review. (But let me know if we still need this for some reason: many more of our options should be culled.) ........ r24623 | extempore | 2011-03-29 00:45:53 +0200 (Tue, 29 Mar 2011) | 3 lines Made ScalaRunTime.stringOf more general by separating out the part which formats it for a repl result, and cleaned up some string functions around the repl. No review. ........ r24624 | extempore | 2011-03-29 04:59:31 +0200 (Tue, 29 Mar 2011) | 26 lines Polishing the programmatic interface to the repl and other bits of machinery which we'll have to live with for a while. The repl classloader now works more like you'd expect a classloader to, as seen here: % scala -Dscala.repl.power scala> class Bippus extends Traversable[Int] { def foreach[U](f: Int => U) = () } defined class Bippus scala> intp.classLoader.getResourceAsStream("Bippus").bytes() res0: Array[Byte] = Array(-54, -2, -70, ... scala> res0.size res1: Int = 23954 scala> case class Bippy(x: Int) defined class Bippy // classBytes is shorter way to say the same thing scala> intp.classLoader.classBytes("Bippy").size res2: Int = 2356 scala> intp.classLoader.classBytes("Bippy$").size res3: Int = 1741 Closes #4399, no review. ........ r24625 | extempore | 2011-03-29 05:25:38 +0200 (Tue, 29 Mar 2011) | 1 line And so my attempt to have a performance test draws the final curtain, no review. ........ r24626 | kzys | 2011-03-29 16:55:30 +0200 (Tue, 29 Mar 2011) | 2 lines [scaladoc] Add a test of colon and parentheses (#4372). No review. ........ r24627 | kzys | 2011-03-29 17:40:21 +0200 (Tue, 29 Mar 2011) | 2 lines [scaladoc] Cleanup code. No review. ........ r24628 | kzys | 2011-03-29 18:21:02 +0200 (Tue, 29 Mar 2011) | 2 lines [scaladoc] Don't create broken link to private companion object. Closes #4374. Review by pedrofurla. ........ r24629 | extempore | 2011-03-29 20:41:08 +0200 (Tue, 29 Mar 2011) | 5 lines A bunch of scaladoc cleanups. Tags with the wrong name, tags in the wrong places, tags saying the wrong thing. I sorted types and values so deprecated ones are at the end. I think they should be hidden by default, but this is a big improvement. Leaving #3914 open so they can be made invisible. No review. ........ r24630 | extempore | 2011-03-29 22:22:22 +0200 (Tue, 29 Mar 2011) | 2 lines Disabled all the script tests. They're not run from ant and they're breaking the distribution build. No review. ........ r24631 | extempore | 2011-03-29 22:22:40 +0200 (Tue, 29 Mar 2011) | 2 lines Fixing the scalap test rig to work like other test types so it doesn't break the distribution build. No review. ........ r24632 | extempore | 2011-03-29 22:22:53 +0200 (Tue, 29 Mar 2011) | 2 lines Transcript pastes now work with leading whitespace (such as my commit message in r24624), no review. ........ r24633 | extempore | 2011-03-29 22:44:33 +0200 (Tue, 29 Mar 2011) | 2 lines A change to a test to defend against output change when run with a plugin enabled. No review. ........ r24634 | cunei | 2011-03-29 23:18:34 +0200 (Tue, 29 Mar 2011) | 2 lines include files/specialized/*.txt in the set of files packaged in the test sbp. ........ r24635 | cunei | 2011-03-29 23:39:29 +0200 (Tue, 29 Mar 2011) | 2 lines Excluding presentation test from sbaz-packaged test suite. ........ r24636 | extempore | 2011-03-30 02:55:20 +0200 (Wed, 30 Mar 2011) | 11 lines Wanting to deprecate -make, first I had to write a way to deprecate -make. So there's that, now you can do val s = SomeSetting(...) withDeprecationMessage "don't use this" And it will do the usual deprecation things. And, deprecated -make. And couldn't resist fixing a bug in -make, it would crash if you gave it its own default option (i.e. -make:all.) Let's deprecate more! I also did further cleaning up of our help outputs. Do I smell a pulitzer in the making? No review. ........ r24637 | rytz | 2011-03-30 09:06:08 +0200 (Wed, 30 Mar 2011) | 1 line fix get-scala-revision script for the case when svn prints some warnings. no review ........ r24638 | extempore | 2011-03-30 22:40:46 +0200 (Wed, 30 Mar 2011) | 10 lines Issue warning when doccomments have $variables which go unfulfilled. Started with patch by dmharrah. Noticed expandVariables never incremented its recursion guard and ended up rewriting it. To avoid spurious warnings you can escape $'s, as in this comment: /** The decoded name of the symbol, e.g. `==` instead of `\$eq\$eq`. */ The above will be ignored during expansion and translated to $eq$eq for output. Closes #4412, no review. ........ r24639 | extempore | 2011-03-30 23:00:08 +0200 (Wed, 30 Mar 2011) | 2 lines Addressing most of the warnings revealed by the patch to warn about unknown scaladoc variables. Updated and reran genprod. No review. ........ r24640 | extempore | 2011-03-31 00:47:00 +0200 (Thu, 31 Mar 2011) | 3 lines Warn about unqualified names in scaladoc links because they don't work. I think it would be better to just make them work, but the way things are structured it looks involved. Closes #3696, no review. ........ r24641 | kzys | 2011-03-31 01:38:18 +0200 (Thu, 31 Mar 2011) | 2 lines [scaladoc] Scaladoc should expand macros recursively. Closes #3484. Review by dubochet. ........ r24642 | extempore | 2011-03-31 05:59:42 +0200 (Thu, 31 Mar 2011) | 6 lines Modified some typer logic to allow annotation arguments for constants which don't have the form Literal(_). The current logic seems to be avoided most of the time, but scaladoc breaks when it runs into it. This closes #4301. I can't figure out from the ticket what the deal is with #2764 and what is presently happening, but it seems like this patch could only improve the situation. Review by rytz. ........ r24643 | extempore | 2011-03-31 05:59:57 +0200 (Thu, 31 Mar 2011) | 2 lines Incidental work on scaladoc while trying to figure out what is up with usecases. Did a little rewrite of recent patch. No review. ........ r24644 | extempore | 2011-03-31 06:59:35 +0200 (Thu, 31 Mar 2011) | 2 lines Making the scaladoc command line help look as pretty as all the others ones do now. No review. ........ r24645 | extempore | 2011-03-31 07:58:01 +0200 (Thu, 31 Mar 2011) | 2 lines Some minor sensibility improvements to previous patch, and tearing out some obsolete pieces of scalap. No review. ........ r24646 | extempore | 2011-03-31 08:09:14 +0200 (Thu, 31 Mar 2011) | 2 lines Fix for interpreter issue with missing newlines wreaking havoc. No review. ........ r24648 | kzys | 2011-03-31 14:59:56 +0200 (Thu, 31 Mar 2011) | 2 lines [scaladoc] Don't link to syntetic companion. Closes #4325. Review by dubochet. ........ r24651 | dragos | 2011-03-31 16:36:38 +0200 (Thu, 31 Mar 2011) | 1 line One breakage too many, this test is a pest -> disabled. no review. ........ r24652 | dragos | 2011-03-31 16:39:19 +0200 (Thu, 31 Mar 2011) | 1 line Fixed failing presentation compiler test. no review. ........ r24653 | extempore | 2011-03-31 18:41:51 +0200 (Thu, 31 Mar 2011) | 1 line Emptiness check in swing, closes #1578 no review. ........ r24654 | extempore | 2011-03-31 18:42:05 +0200 (Thu, 31 Mar 2011) | 4 lines Added some null checks in swing. I assumed the behavior when the input verifier is null should be "assume it verifies" not "assume it doesn't" but since I don't actually know anything about swing this guess could be wrong. Closes #3783, review by imaier. ........ r24655 | odersky | 2011-03-31 18:46:48 +0200 (Thu, 31 Mar 2011) | 1 line recommitted 24578: All compiler control methods now do something sensible when called from presentation compiler thread itself. ........ r24656 | extempore | 2011-03-31 21:26:24 +0200 (Thu, 31 Mar 2011) | 3 lines Printing refinement types in scaladoc. Actually only printing one-member refinements, for bigger ones printing the number of members. Should be improved. Closes #484, no review. ........ r24657 | extempore | 2011-03-31 21:26:37 +0200 (Thu, 31 Mar 2011) | 3 lines Fix for a little breakage which crept into power mode. This is why real things with real types are better than generating code and remembering to update your strings. No review. ........ r24658 | extempore | 2011-03-31 22:44:29 +0200 (Thu, 31 Mar 2011) | 7 lines Separated abstract and concrete value members in scaladoc. This looks like such a runaway improvement to me that I'm just checking it in, but if anyone feels differently say the word. I eliminated the abstract/concrete filter entirely as it is extraneous once you can just see which is which. Closes #3831, review by malayeri. ........ r24659 | extempore | 2011-04-01 00:18:43 +0200 (Fri, 01 Apr 2011) | 2 lines A quick fix for the weird string output one gets in the repl when calling .par. No review. ........ r24660 | extempore | 2011-04-01 04:18:53 +0200 (Fri, 01 Apr 2011) | 5 lines Working on the documentation of core classes. Trying to withdraw some of the goodness I banked a while ago with the AnyVal types. Started on what will culminate in the total elimination of SourcelessComments. Cleaned up the docs on ancient classes like Product. More to come. No review. ........ r24661 | extempore | 2011-04-01 07:02:30 +0200 (Fri, 01 Apr 2011) | 2 lines A less ad hoc infrastructure for generating AnyVal sources. A few more comments on said sources. No review. ........ r24662 | extempore | 2011-04-01 08:41:46 +0200 (Fri, 01 Apr 2011) | 1 line Fix for parsing bug in scaladoc closes #4420, no review. ........ r24663 | extempore | 2011-04-01 18:00:50 +0200 (Fri, 01 Apr 2011) | 3 lines Since somewhere before 2.8.0 shipped scalac has disgorged a stack trace for the misdemeanor of specifying a non-existent directory for -d. No more, no review. ........ r24664 | kzys | 2011-04-01 19:09:59 +0200 (Fri, 01 Apr 2011) | 2 lines Put "\n" between superclass's comment and subclass's. Closes #4289. Review by pedrofurla. ........ r24665 | extempore | 2011-04-01 19:18:34 +0200 (Fri, 01 Apr 2011) | 14 lines Finding myself wanting a working -Ystop, I did the following. -Ystop-after:phase works -Ystop-before:phase works -Ystop:phase is a backward compat alias for -Ystop-after Until now -Ystop, although documented to "stop after phase", actually stopped before phase, to the consternation of some. Furthermore the programmatic way to influence the stop phase (protected def stopPhase in Global#Run) involved returning true if you wanted to stop before the phase. So now the command line option works as advertised, and the method has the same semantics. The only potential loser is some script which uses -Ystop: based on the actual behavior rather than the documented behavior. Well, someone had to lose. No review. ........ r24666 | kzys | 2011-04-01 20:57:36 +0200 (Fri, 01 Apr 2011) | 2 lines On Scaladoc, we should escape meta characters before compile regexp. No review. ........ r24667 | extempore | 2011-04-02 01:55:01 +0200 (Sat, 02 Apr 2011) | 2 lines A double completion whammy: crasher for edge condition and method signatures not being cleaned of their $iws. Closes #4434, no review. ........ r24672 | malayeri | 2011-04-04 15:57:56 +0200 (Mon, 04 Apr 2011) | 1 line [scaladoc] Add explicit link to show linear supertypes and known subclasses. Closes #4416. Modifications to style sheets to reduce number of colors and make the documentation more readable (includes contributions from Ruediger Keller). No review. ........ r24673 | malayeri | 2011-04-04 16:34:29 +0200 (Mon, 04 Apr 2011) | 1 line [scaladoc] Add missing files. ........ r24674 | cunei | 2011-04-04 16:52:55 +0200 (Mon, 04 Apr 2011) | 2 lines Fix for windows batch files. Closes #4439. ........ r24675 | malayeri | 2011-04-04 17:22:09 +0200 (Mon, 04 Apr 2011) | 1 line [scaladoc] Minor CSS tweaks. No review. ........ r24676 | kzys | 2011-04-04 18:19:32 +0200 (Mon, 04 Apr 2011) | 2 lines Every tag element (even @define and @usecase) end before the next recognised tag. Closes #4409. Review by extempore. ........ r24677 | odersky | 2011-04-04 18:34:02 +0200 (Mon, 04 Apr 2011) | 1 line Fixed crashes in IDE on default parameters in constructors. ........ r24678 | malayeri | 2011-04-04 18:36:27 +0200 (Mon, 04 Apr 2011) | 1 line [scaladoc] Change div id's of abstract and concrete members so that "order by inheritance" action works properly. Fixes issue introduced in r24658. Review by extempore. ........ r24679 | malayeri | 2011-04-04 18:37:51 +0200 (Mon, 04 Apr 2011) | 1 line [scaladoc] Make object/template name be a link to the companion. Closes #4411. Review by extempore to make sure the design makes sense. ........ r24680 | malayeri | 2011-04-04 18:38:11 +0200 (Mon, 04 Apr 2011) | 1 line [scaladoc] Fix minor CSS issue. No review. ........ r24681 | odersky | 2011-04-04 19:35:19 +0200 (Mon, 04 Apr 2011) | 1 line Some localized code cleanup. ........ r24682 | malayeri | 2011-04-04 20:17:26 +0200 (Mon, 04 Apr 2011) | 1 line [scaladoc] Updated trait, package, class, and object icons. No review. ........ r24683 | extempore | 2011-04-05 03:48:11 +0200 (Tue, 05 Apr 2011) | 12 lines Added a long overdue warning for when people define a class and then an object or vice versa in the repl. scala> object Bippy { implicit val myImplicitsDontWork = 5 } defined module Bippy scala> trait Bippy { val x = "hello" } defined trait Bippy warning: previously defined object Bippy is not a companion to trait Bippy. Companions must be defined together; you may wish to use :paste mode for this. No review. ........ r24684 | extempore | 2011-04-05 03:48:31 +0200 (Tue, 05 Apr 2011) | 6 lines Enhancing the repl-testing code by turning it into a transcript producing machine. "Here's some code." "Here's a transcript!" "Good day to you, sir!" "No, good day to YOU!" These changes are awesome. Look at the checkfile diffs for god's sake, they'll make you weep with joy. No review. ........ r24685 | rytz | 2011-04-05 09:50:41 +0200 (Tue, 05 Apr 2011) | 1 line make natives test run on win64. no review ........ r24686 | rytz | 2011-04-05 09:54:41 +0200 (Tue, 05 Apr 2011) | 1 line svn property: mark the dll as binary. no review. ........ r24687 | malayeri | 2011-04-05 10:36:32 +0200 (Tue, 05 Apr 2011) | 1 line [scaladoc] Fix failing test. No review. ........ r24688 | odersky | 2011-04-05 14:19:10 +0200 (Tue, 05 Apr 2011) | 1 line Fixes #4298, by correcting doc comment ........ r24689 | dragos | 2011-04-05 18:19:45 +0200 (Tue, 05 Apr 2011) | 3 lines Wrapped exceptions coming from calls to 'ask' in a FailedException. This allows to get a stack trace from both the presentation compiler thread and the calling thread. review by odersky. ........ r24690 | odersky | 2011-04-05 18:22:21 +0200 (Tue, 05 Apr 2011) | 1 line better handling of on-same-thread calls. ........ r24691 | dragos | 2011-04-05 19:03:51 +0200 (Tue, 05 Apr 2011) | 1 line Forgot a import in the last commit. no review. ........ r24692 | extempore | 2011-04-06 01:19:26 +0200 (Wed, 06 Apr 2011) | 3 lines Some accumulated cleanups around the interpreter loop commands as I attempt to make my way all the way to the promised land of documenting it. No review. ........ r24693 | extempore | 2011-04-06 06:33:15 +0200 (Wed, 06 Apr 2011) | 1 line Fixed an edge case setting crasher, no review. ........ r24694 | extempore | 2011-04-06 06:33:27 +0200 (Wed, 06 Apr 2011) | 3 lines Fixed a failure output regression I introduced working around a process bug. Unrolled the code I'd put in to work around the now-fixed process bug. No review. ........ r24695 | extempore | 2011-04-06 06:33:46 +0200 (Wed, 06 Apr 2011) | 1 line Misc cleanups and crash avoidance, no review. ........ r24696 | malayeri | 2011-04-06 16:23:25 +0200 (Wed, 06 Apr 2011) | 1 line Set "synthetic" flag for methods $asInstanceOf and $isInstanceOf. Closes #4368. No review. ........ r24697 | malayeri | 2011-04-06 16:24:30 +0200 (Wed, 06 Apr 2011) | 1 line [scaladoc] Reduce horizontal lines in html output, refactor Template.css to improve readability. No review. ........ r24698 | malayeri | 2011-04-06 16:28:41 +0200 (Wed, 06 Apr 2011) | 1 line Update documentation of MutableList. Closes #4397. No review. ........ r24699 | odersky | 2011-04-06 16:32:32 +0200 (Wed, 06 Apr 2011) | 1 line More refinements to avoid deadlocks systematically when asking from presentation compiler thread ........ r24700 | extempore | 2011-04-06 20:48:15 +0200 (Wed, 06 Apr 2011) | 3 lines The beautification of repl pasting had the problem that the new beautiful output was not itself pastable. Now I have achieved "paste idempotence". No review. ........ r24701 | extempore | 2011-04-07 09:30:38 +0200 (Thu, 07 Apr 2011) | 2 lines Clamping down on some more breakage which snuck into power mode. I really need some power tests. No review. ........ r24702 | extempore | 2011-04-07 09:31:02 +0200 (Thu, 07 Apr 2011) | 9 lines Deleted SourcelessComments. Created source files for Any, AnyRef, Nothing and Null with improved documentation of their particulars and convinced scaladoc to parse them without leaving scalac institutionalized. Now rather than seeing our hardcoded documentation strings bitrot in a shadowy flight from classes which do not exist, we are championing the cause of the innocent and powerless. Nothing and Null aren't above the law! So now any responsible party can fire up their text editor and go to town on Nothing.scala. As I'm sure they will. Review by malayeri. ........ r24703 | extempore | 2011-04-07 09:31:14 +0200 (Thu, 07 Apr 2011) | 2 lines Added a comment to Dynamic sharing that if you don't supply mr. -Xexperimental, it won't work. No review. ........ r24704 | malayeri | 2011-04-07 15:34:14 +0200 (Thu, 07 Apr 2011) | 1 line [scaladoc] Make links to classes and traits not be the entire line, but just the template name. Closes #4444. No review. ........ r24705 | malayeri | 2011-04-07 16:03:49 +0200 (Thu, 07 Apr 2011) | 1 line [scaladoc] Don't generate an attributes block if its contents are empty. No review. ........ r24706 | odersky | 2011-04-07 16:30:56 +0200 (Thu, 07 Apr 2011) | 1 line Fixes #2808 without redefining what override means. Review by extempore. ........ r24708 | extempore | 2011-04-07 19:43:41 +0200 (Thu, 07 Apr 2011) | 10 lines Made power mode more configurable. Don't think of this as the long-term configuration answer, but what I have any chance of doing before 2.9 ships. // file to interpret when entering power mode instead of default -Dscala.repl.power.initcode=/path/to/file // file holding banner to display instead of default -Dscala.repl.power.banner=/path/to/file No review. ........ r24709 | magarcia | 2011-04-08 13:38:48 +0200 (Fri, 08 Apr 2011) | 1 line [MSIL] handling of volatile fields. review by rytz. ........ r24710 | malayeri | 2011-04-08 16:26:22 +0200 (Fri, 08 Apr 2011) | 1 line [scaladoc] Separate sections for "linear supertype" and "known subclasses" using patch provided by Ruediger Keller. Closes #4456. Closes #4304. ........ r24711 | malayeri | 2011-04-08 17:10:32 +0200 (Fri, 08 Apr 2011) | 1 line [scaladoc] Don't generate long comments if they are the same as the short comment. Closes #4455. No review. ........ r24712 | odersky | 2011-04-08 18:31:26 +0200 (Fri, 08 Apr 2011) | 1 line Closes #4431. Review by extempore. ........ r24713 | extempore | 2011-04-08 18:42:18 +0200 (Fri, 08 Apr 2011) | 2 lines Factoring the imports related code out of the main Interpreter class, no review. ........ r24714 | extempore | 2011-04-08 18:42:38 +0200 (Fri, 08 Apr 2011) | 1 line Added :imports command, no review. ........ r24715 | extempore | 2011-04-10 04:17:28 +0200 (Sun, 10 Apr 2011) | 1 line Made the reading of y/n a little more robust. No review. ........ r24716 | extempore | 2011-04-10 04:18:08 +0200 (Sun, 10 Apr 2011) | 2 lines More fun with xml and elements not appearing equal. Closes #4387, no review. ........ r24717 | extempore | 2011-04-10 04:18:32 +0200 (Sun, 10 Apr 2011) | 2 lines Changed scala.io.Position into something other than a fixed object which throws exceptions when the position overflows. Closes #4382, no review. ........ r24719 | extempore | 2011-04-11 05:04:47 +0200 (Mon, 11 Apr 2011) | 2 lines Improving the repl help infrastructure, and made the :wrap command more robust. No review. ........ r24720 | extempore | 2011-04-11 07:01:17 +0200 (Mon, 11 Apr 2011) | 4 lines Found there was still all kinds of detritus remaining from the deceased IMPLICITMETHODtpe and ImplicitMethodType. Applied wrecking ball, review by moors. (Can I do the same thing with DEBRUIJNINDEXtpe and DeBruijnIndex?) ........ r24721 | eugenevigdorchik | 2011-04-11 08:42:47 +0200 (Mon, 11 Apr 2011) | 1 line Tighten the visibility of interactive.Global. No review. ........ r24722 | odersky | 2011-04-11 09:01:55 +0200 (Mon, 11 Apr 2011) | 1 line Closes #4396. No review. ........ r24723 | odersky | 2011-04-11 10:53:51 +0200 (Mon, 11 Apr 2011) | 1 line Closes #4380. No review. ........ r24724 | odersky | 2011-04-11 10:56:57 +0200 (Mon, 11 Apr 2011) | 1 line Deleted debug output that made it into previous commit. ........
* Merged revisions 24647,24649 via svnmerge from Iulian Dragos2011-03-312-27/+19
| | | | | | | | | | | | | | | | | https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24647 | dragos | 2011-03-31 10:12:40 +0200 (Thu, 31 Mar 2011) | 1 line Don't create a new thread on each presentation compiler crash. Solves race conditions in outstanding maps (should fix deadlocks in the IDE). Added project name to the thread name and log messages. no review. ........ r24649 | dragos | 2011-03-31 15:42:23 +0200 (Thu, 31 Mar 2011) | 1 line Allow the presentation thread to terminate when the compiler is shut down. no review. ........
* Merged revisions 24591 via svnmerge from Iulian Dragos2011-03-282-2/+10
| | | | | | | | | | | https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24591 | dragos | 2011-03-25 18:10:01 +0100 (Fri, 25 Mar 2011) | 1 line Set the original tree for TypeTree in self-types, and making sure there are no cycles in TypeTree.original. review by odersky. ........
* Merged revisions 24605 via svnmerge from Iulian Dragos2011-03-273-32/+39
| | | | | | | | | | | | | | | | | https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24605 | dragos | 2011-03-27 13:27:29 +0200 (Sun, 27 Mar 2011) | 6 lines Revert "All compiler control methods now do something sensible when called from presentation compiler thread itself." This reverts commit bb290ba26e1d4677a36b7278ab370e841cca2605. It leads to consistent lockups on the IDE, so we revert this temporarily. We'll re-enable it after we can make sure it works correctly. ........
* Merged revisions 24578-24579 via svnmerge from Martin Odersky2011-03-253-31/+34
| | | | | | | | | | | | | | | https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24578 | odersky | 2011-03-25 11:15:29 +0100 (Fri, 25 Mar 2011) | 1 line All compiler control methods now do something sensible when called from presentation compiler thread itself. ........ r24579 | odersky | 2011-03-25 11:17:35 +0100 (Fri, 25 Mar 2011) | 1 line Fixed error in previous commit ........
* Merged revisions 24576 via svnmerge from Antonio Cunei2011-03-241-5/+11
| | | | | | | | | | | https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24576 | malayeri | 2011-03-24 21:36:33 +0100 (Thu, 24 Mar 2011) | 1 line [scaladoc] Changes to template.css based on suggestions by Bill Venners. No review. ........
* undid merge of r24573.Antonio Cunei2011-03-241-8/+0
|
* Merged revisions 24573 via svnmerge from Antonio Cunei2011-03-241-0/+8
| | | | | | | | | | | https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24573 | dragos | 2011-03-24 18:48:14 +0100 (Thu, 24 Mar 2011) | 1 line Added synchronous version of askStructure, needed by the IDE to avoid deadlocks. review by odersky. ........
* Merged revisions 24570 via svnmerge from Antonio Cunei2011-03-241-1/+1
| | | | | | | | | | | https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24570 | odersky | 2011-03-24 17:54:16 +0100 (Thu, 24 Mar 2011) | 1 line Moved Dynamic support to -Xexperimental. ........
* Merged revisions 24551-24564,24567 via svnmerge...Antonio Cunei2011-03-2439-286/+625
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merged revisions 24551-24564,24567 via svnmerge from https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24551 | odersky | 2011-03-23 16:31:04 +0100 (Wed, 23 Mar 2011) | 2 lines Squashing the signature bugs. The trick is that mixed in methods are declared as bridges. Review by extempore. ........ r24552 | odersky | 2011-03-23 16:33:58 +0100 (Wed, 23 Mar 2011) | 1 line Simple test case to see whether Java understands mixed in signatures. This should be extended with more cases. Review by extempore. ........ r24553 | odersky | 2011-03-23 19:32:39 +0100 (Wed, 23 Mar 2011) | 1 line Moving signature tests to pending, because they operate under wrong assumptions now that mixed in members are bridges. Review by extempore. ........ r24554 | odersky | 2011-03-23 22:44:13 +0100 (Wed, 23 Mar 2011) | 1 line Fixes #4298. Review by extempore. ........ r24555 | extempore | 2011-03-23 23:35:09 +0100 (Wed, 23 Mar 2011) | 2 lines Spiced up the signature test infrastructure a bunch, wrote some more tests, restored the tests in pending. No review. ........ r24556 | extempore | 2011-03-24 02:10:26 +0100 (Thu, 24 Mar 2011) | 2 lines Restoring my higher-kinded-Array signature check which martin callously blew away while fixing all our other problems. Review by odersky. ........ r24557 | extempore | 2011-03-24 03:35:22 +0100 (Thu, 24 Mar 2011) | 1 line Looks like I accidentally committed a test log, no review. ........ r24558 | extempore | 2011-03-24 06:49:53 +0100 (Thu, 24 Mar 2011) | 2 lines Discovered Range.foreach inlining was broken due to a Nothing signature appearing and confusing the loader. No review. ........ r24559 | extempore | 2011-03-24 08:04:32 +0100 (Thu, 24 Mar 2011) | 3 lines Removing empty directories the newly informative partest told me about. No review. ........ r24560 | extempore | 2011-03-24 09:46:55 +0100 (Thu, 24 Mar 2011) | 2 lines Changed App-using tests to use main() to see if that's our trouble. No review. ........ r24561 | odersky | 2011-03-24 12:15:37 +0100 (Thu, 24 Mar 2011) | 1 line Moved failing tests to pending after having diagnosed that the only problem is a difference in output between Java 1.5 and 1.6 reflection libraries. Can we moved back once that's fixed. For now, it's more important to ghet the build back. ........ r24562 | phaller | 2011-03-24 15:09:18 +0100 (Thu, 24 Mar 2011) | 1 line Deprecated unused members in scala.concurrent. Added documentation to scala.concurrent.ops and scala.concurrent.FutureTaskRunner. ........ r24563 | phaller | 2011-03-24 15:19:35 +0100 (Thu, 24 Mar 2011) | 1 line Added implicit TaskRunner parameters to scala.concurrent.ops.{par, replicate}. Review by prokopec. ........ r24564 | prokopec | 2011-03-24 16:00:41 +0100 (Thu, 24 Mar 2011) | 5 lines Added a temporary fix for #4351, but disabled it because the extend specialized class with nonspecialized type-parameters is used in the stdlib already. Disabling scala.parallel package, adding the currently disabled scala.concurrent package which will be implemented in some of the next releases. Review by phaller. ........ r24567 | odersky | 2011-03-24 17:32:15 +0100 (Thu, 24 Mar 2011) | 1 line Three things to make Eclipse more robust against deadlocks: (1) catch stale responses in presentation compile thread. (2) Avoid stale responses by two try-finallys in getEnteredParsed, askLoadedTyped. ........
* Merged revisions 24541-24548 via svnmerge from Antonio Cunei2011-03-2371-130/+298
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24541 | odersky | 2011-03-22 17:46:49 +0100 (Tue, 22 Mar 2011) | 1 line Added headers with copyright messages. ........ r24542 | odersky | 2011-03-22 18:18:09 +0100 (Tue, 22 Mar 2011) | 1 line Added test that signatures conform to their erasures. Work in progress. Review by extempore. ........ r24543 | prokopec | 2011-03-22 19:22:21 +0100 (Tue, 22 Mar 2011) | 1 line Adding the `seq` method to all collections. Removing `pforeach`. ........ r24544 | prokopec | 2011-03-22 19:22:25 +0100 (Tue, 22 Mar 2011) | 6 lines Implementing foreach to work in parallel in ParIterableLike. Doing a bunch of refactoring around in the collection framework to ensure a parallel foreach is never called with a side-effecting method. This still leaves other parts of the standard library and the compiler unguarded. No review. ........ r24545 | prokopec | 2011-03-22 19:23:28 +0100 (Tue, 22 Mar 2011) | 3 lines Adding some tests for #3651. No review. ........ r24546 | odersky | 2011-03-22 23:59:03 +0100 (Tue, 22 Mar 2011) | 1 line Better signature avoidance. Review by extempore. ........ r24547 | extempore | 2011-03-23 08:59:18 +0100 (Wed, 23 Mar 2011) | 11 lines My early attempts to implement non-integral ranges in a way which was useful without having lots of floating point traps were less than successful. One of the bigger backfires is that the requirement not to round (trying, and failing anyway, to avoid surprises with methods like "contains") inflicts runtime errors. The simple way to improve this, which seems a good idea anyway, is to make the default math context something less inclined to exceptions. Default BigDecimal mc is now DECIMAL128. References #1812, #4201 and puts #4201 back to normal priority. Review by community. ........ r24548 | magarcia | 2011-03-23 13:33:27 +0100 (Wed, 23 Mar 2011) | 1 line sn.OClone caused checkinit failure when assigned to CompilerTermNames.clone_ . review by rytz. ........
* Merged revisions 24525-24539 via svnmerge from Antonio Cunei2011-03-2257-58301/+558
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24525 | kzys | 2011-03-21 13:24:48 +0100 (Mon, 21 Mar 2011) | 1 line [scaladoc] Add HtmlFactoryTest and reorganize directory structure. Reviewed by pedrofurla. ........ r24526 | kzys | 2011-03-21 13:44:20 +0100 (Mon, 21 Mar 2011) | 2 lines [scaladoc] Add a test for #4361. ........ r24527 | plocinic | 2011-03-21 14:37:53 +0100 (Mon, 21 Mar 2011) | 1 line Closes #4202 again, closes #4363. if someone can enlighten me why we actually had that exclusion for companion objects in the first place I would be grateful. review by odersky ........ r24528 | kzys | 2011-03-21 14:47:57 +0100 (Mon, 21 Mar 2011) | 2 lines [scaladoc] Add a test for #4306. Review by pedrofurla. ........ r24529 | extempore | 2011-03-21 17:19:33 +0100 (Mon, 21 Mar 2011) | 2 lines One hundred! One hundred times slower on windows! Ah, ha, ha! Adjusted test case, no review. ........ r24530 | cunei | 2011-03-21 18:08:00 +0100 (Mon, 21 Mar 2011) | 2 lines license files ........ r24531 | cunei | 2011-03-21 18:13:20 +0100 (Mon, 21 Mar 2011) | 2 lines license files. ........ r24532 | cunei | 2011-03-21 18:47:44 +0100 (Mon, 21 Mar 2011) | 5 lines removed gpl Some javascript utils are dual licensed under gpl and mit. We already include the mit ones. ........ r24533 | extempore | 2011-03-21 23:25:40 +0100 (Mon, 21 Mar 2011) | 20 lines [I'm laptop only so there's some chance this will incur temporary breakage, but it needs committing.] Heading off gratuitous complications which haven't yet shipped, I eliminated the -jar startup option in favor of doing what we already do, figuring it out. So now all these things work. scala foo/bar.scala // if file is a script or has one main method scala foo.Bar // if it has a legal main method scala foo.jar // if it has a legal MainClass attribute Also changed "-savecompiled" to "-save" and given scala source called foo.scala, generate foo.jar rather than foo.scala.jar. Cleaned up a bunch of related code and further polished the scala startup message. And unbroke choice settings and improved that error too, which closes #3849. While trying to write a test for the choice setting, was reminded that partest just discards invalid flags files. Made it fail instead, which closes #3712. Fixed the new failures that revealed. No review. ........ r24534 | extempore | 2011-03-21 23:46:53 +0100 (Mon, 21 Mar 2011) | 2 lines We need a successful build, not sure why this hasn't been disabled yet. Disabled failing coder test, no review. ........ r24535 | extempore | 2011-03-22 01:06:44 +0100 (Tue, 22 Mar 2011) | 3 lines Oh the irony, disabling the failing test made the build fail, because another test is hardcoded to use its paths. Disabled that test too. We'll put humpty back together again. No review. ........ r24536 | extempore | 2011-03-22 05:28:21 +0100 (Tue, 22 Mar 2011) | 6 lines Not yet learned my lesson about partest and empty directories. Rather than reapply that bandaid, went after partest. Attempts to make partest ignore empty directories. Discover directory tests aren't run when the command line tool is used, make them run like everyone else. Find more tests which due to misplacement are silently ignored, move them into tested locations. No review. ........ r24537 | kzys | 2011-03-22 15:10:25 +0100 (Tue, 22 Mar 2011) | 2 lines [scaladoc] Closes #4366. Review by pedrofurla. ........ r24538 | moors | 2011-03-22 15:31:36 +0100 (Tue, 22 Mar 2011) | 1 line closes #4205: quick&dirty fix to force loading of info's and thus avoid order-dependency until we fix unsafeTypeParams for good. no review ........ r24539 | moors | 2011-03-22 16:43:28 +0100 (Tue, 22 Mar 2011) | 1 line closes #4345. skip variance checks for calls to super accessor. no review ........
* Merged revisions 24518-24521,24523 via svnmerge...Antonio Cunei2011-03-2010-193/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merged revisions 24518-24521,24523 via svnmerge from https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24518 | extempore | 2011-03-20 06:24:23 +0100 (Sun, 20 Mar 2011) | 2 lines Restored erasure warning for isInstanceOf tests. Closes #4302, no review. ........ r24519 | odersky | 2011-03-20 08:35:58 +0100 (Sun, 20 Mar 2011) | 1 line Commented #3928 patch. ........ r24520 | rytz | 2011-03-20 10:12:02 +0100 (Sun, 20 Mar 2011) | 1 line minor fix for -Xmax-classfile-name. no review ........ r24521 | magarcia | 2011-03-20 11:55:55 +0100 (Sun, 20 Mar 2011) | 1 line for .NET bootstrapping (more coming). review by rytz. ........ r24523 | magarcia | 2011-03-20 15:08:34 +0100 (Sun, 20 Mar 2011) | 3 lines The last checkin caused a test to time-out, but that test runs fine locally. I'm giving Jenkins another chance. Like the previous changeset, this one has to do with .NET bootstrapping. review by rytz. ........
* Merged revisions 24504-24516 via svnmerge from Antonio Cunei2011-03-2035-250/+588
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24504 | extempore | 2011-03-19 01:31:59 +0100 (Sat, 19 Mar 2011) | 4 lines rytz's patch for making our crazy long names a bit less crazy. You can now use -Xmax-classfile-name to limit your filenames to as few as 72 characters. Watch out, nanotube gardens, we'll be stepping on your tiny flowers before you know it. No review. ........ r24505 | kzys | 2011-03-19 13:14:14 +0100 (Sat, 19 Mar 2011) | 2 lines [scaladoc] Closes #4361. ........ r24506 | kzys | 2011-03-19 14:02:35 +0100 (Sat, 19 Mar 2011) | 2 lines [scaladoc] Closes #4357. Review by dubochet. ........ r24507 | extempore | 2011-03-19 16:27:01 +0100 (Sat, 19 Mar 2011) | 3 lines A couple more minor tweaks to power mode, and more importantly, fix for a jline NPE provoked if your classloaders loaded classes in a way other than it expected. No review. ........ r24508 | extempore | 2011-03-19 16:27:19 +0100 (Sat, 19 Mar 2011) | 4 lines Some boundary conditions in range. Also bit the bullet on getting infix implicits to Integral and Fractional. As a bonus this patch knocked 10,000 long boxings off a specialized test. Who knew. Closes #4308, #4321, review by community. ........ r24509 | extempore | 2011-03-19 16:38:06 +0100 (Sat, 19 Mar 2011) | 1 line Added a :type command to the repl, no review. ........ r24510 | extempore | 2011-03-19 18:32:37 +0100 (Sat, 19 Mar 2011) | 10 lines Removed long deprecated and obscure CloneableCollection. Discovered we have a scala.collection.mutable.Cloneable which does not extend java.lang.Cloneable, which is why Array is not considered cloneable. That seems wrong, but to be conservative I gave Array the Cloneable interface without altering the scala trait. Also, if @serializable is deprecated in favor of Serializable, should not @cloneable be deprecated analogously? Closes #4307, and a commit-question review by rytz. ........ r24511 | extempore | 2011-03-19 19:12:17 +0100 (Sat, 19 Mar 2011) | 2 lines Fix for crasher with Class objects. Code by moors, comment by extempore. References #4305, no review. ........ r24512 | extempore | 2011-03-19 20:55:42 +0100 (Sat, 19 Mar 2011) | 3 lines Prevent a divergent implicit from terminating implicit search, so that there can still be a winner, as endorsed by martin over a cheese plate. Closes #3883, review by dmharrah. ........ r24513 | extempore | 2011-03-19 20:55:59 +0100 (Sat, 19 Mar 2011) | 3 lines I'm going to assume the patch I dropped off five months ago for #3938 was merely overlooked. Fixes an issue with java types which extend inner classes. Closes #3938, review by odersky. ........ r24514 | extempore | 2011-03-19 21:20:17 +0100 (Sat, 19 Mar 2011) | 1 line Fix for a slice related array view regression. Closes #4352, no review. ........ r24515 | extempore | 2011-03-19 21:29:02 +0100 (Sat, 19 Mar 2011) | 2 lines Oh yeah, now I remember why I started with length overrides. Fix for soon to be failing test, no review. ........ r24516 | extempore | 2011-03-20 00:20:19 +0100 (Sun, 20 Mar 2011) | 2 lines Fix for a big bug in lastIndexOfSlice and some latent negative index bugs in both that and indexOfSlice. This stuff is taxing. Closes #4348, no review. ........
* Merged revisions 24494-24498 via svnmerge from Antonio Cunei2011-03-1862-514/+634
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24494 | extempore | 2011-03-18 19:23:14 +0100 (Fri, 18 Mar 2011) | 17 lines Accumulated work on fsc. Cleans up a bunch of things, and adds the following new options. -ipv4 Use IPv4 rather than IPv6 for the server socket absolute-cp -Make classpath elements absolute paths before sending to server -max-idle Set idle timeout in minutes for fsc (use 0 for no timeout) My question marks are what are the right defaults for the first two. Former behavior is to absolutize the classpath always and never prefer IPv4 sockets. I changed the default to not absolutize the classpath, with the option if you need it; I left the system default in place for the socket creation, but I have a feeling we should default to IPv4. My only hesitation is that the only way to request an IPv4 socket from java involves mutating a global system property. (Robustness FTW.) So for now, you have to give -ipv4. Closes #3626, #3785, #3788, #3789. Review by community. ........ r24495 | extempore | 2011-03-18 20:06:22 +0100 (Fri, 18 Mar 2011) | 2 lines Improved the error message when one gives invalid options to scala. Similar improvements for scalac/fsc/etc has to wait. No review. ........ r24496 | prokopec | 2011-03-18 20:07:38 +0100 (Fri, 18 Mar 2011) | 25 lines Removing toPar* methods, since we've agreed they're difficult to: - underestand - maintain Also, changed the docs and some tests appropriately. Description: 1) Every collection is now parallelizable - switch to the parallel version of the collection is done via `par`. - Traversable collections and iterators have `par` return a parallel collection of type `ParIterable[A]` with the implementation being the representative of `ParIterable`s (currently, `ParArray`). - Iterable collections do the same thing. - Sequences refine `par`'s returns type to `ParSeq[A]`. - Maps and sets do a similar thing. The above means that the contract for `par` changed - it is no longer guaranteed to be O(1), nor reflect the same underlying data, as was the case for mutable collections before. Method `par` is now at worst linear. Furthermore, specific collection implementations override `par` to a more efficient alternative - instead of copying the dataset, the dataset is shared between the old and the new version. Implementation complexity may be sublinear or constant in these cases, and the underlying data structure may be shared. Currently, these data structures include parallel arrays, maps and sets, vectors, hash trie maps and sets, and ranges. Finally, parallel collections implement `par` trivially. 2) Methods `toMap`, `toSet`, `toSeq` and `toIterable` have been refined for parallel collections to switch between collection types, however, they never switch an implementation from parallel to sequential. They may or may not copy the elements, as is the case with sequential variants of these methods. 3) The preferred way to switch between different collection types, whether maps, sets and seqs, or parallel and sequential, is now via use of methods `toIterable`, `toSeq`, `toSet` and `toMap` in combination with `par` and `seq`. Review by odersky. ........ r24497 | extempore | 2011-03-18 22:07:37 +0100 (Fri, 18 Mar 2011) | 2 lines A minor overhaul of power mode. I'm going to document it any minute now. No review. ........ r24498 | extempore | 2011-03-18 22:22:57 +0100 (Fri, 18 Mar 2011) | 1 line Little tweak for failing test, no review. ........
* Merged revisions 24492 via svnmerge from Antonio Cunei2011-03-181-3/+2
| | | | | | | | | | | https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24492 | cunei | 2011-03-18 17:45:53 +0100 (Fri, 18 Mar 2011) | 2 lines minor changes ........
* Merged revisions 24490 via svnmerge from Antonio Cunei2011-03-181-32/+15
| | | | | | | | | | | https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24490 | cunei | 2011-03-18 17:00:46 +0100 (Fri, 18 Mar 2011) | 2 lines Reworked windows batch files; should fix #2671. ........
* Merged revisions 24483-24486 via svnmerge from Antonio Cunei2011-03-1813-63/+180
| | | | | | | | | | | | | | | | | | | | | | | | | | https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24483 | extempore | 2011-03-17 21:04:47 +0100 (Thu, 17 Mar 2011) | 5 lines Always forget that checking system properties causes exceptions in applets and such. Made the system property wrapper wrap its access checks in some more wrapping. I spent a long time trying to write a test for the security manager but it's hopeless without knowing all the details of the test environment. Closes #4346, no review. ........ r24484 | extempore | 2011-03-17 23:40:54 +0100 (Thu, 17 Mar 2011) | 1 line Reenabled the commented out bits of the test for #1642. No review. ........ r24485 | extempore | 2011-03-18 02:00:04 +0100 (Fri, 18 Mar 2011) | 1 line Disabled test not actually doing anything anyway, no review. ........ r24486 | rytz | 2011-03-18 10:44:07 +0100 (Fri, 18 Mar 2011) | 1 line close #4041. review by extempore ........
* Merged revisions 24472-24473,24476 via svnmerge...Antonio Cunei2011-03-179-108/+13
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merged revisions 24472-24473,24476 via svnmerge from https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24472 | phaller | 2011-03-17 10:55:42 +0100 (Thu, 17 Mar 2011) | 1 line Removed uniqueness annotations. Review by rytz. ........ r24473 | kzys | 2011-03-17 12:40:03 +0100 (Thu, 17 Mar 2011) | 2 lines [scaladoc] Closes #4306. Review by extempore. ........ r24476 | extempore | 2011-03-17 16:32:13 +0100 (Thu, 17 Mar 2011) | 1 line Rebuilt jline for java 1.5. No review. ........
| * Rebuilt jline for java 1.5. No review.v2.9-divergedPaul Phillips2011-03-172-1/+3
| |
| * [scaladoc] Closes #4306. Review by extempore.Kato Kazuyoshi2011-03-171-1/+3
| |
| * Removed uniqueness annotations. Review by rytz.Philipp Haller2011-03-176-106/+7
| |
* | reverting r24475 (svnmerge should take care of ...Antonio Cunei2011-03-176-7/+106
| | | | | | | | | | reverting r24475 (svnmerge should take care of that)
* | Updated some definitions while testing 2.9 dist...Antonio Cunei2011-03-173-4/+4
| | | | | | | | | | Updated some definitions while testing 2.9 distrib building.
* | Removed uniqueness annotations. Review by rytz.Philipp Haller2011-03-176-106/+7
| |
* | Merged revisions 24457-24470 via svnmerge from Antonio Cunei2011-03-16155-920/+974
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24457 | plocinic | 2011-03-14 21:24:57 +0100 (Mon, 14 Mar 2011) | 1 line Applied second patch by asloane. closes #3969. no review ........ r24458 | plocinic | 2011-03-14 21:25:11 +0100 (Mon, 14 Mar 2011) | 1 line Closes #4163. no review ........ r24459 | extempore | 2011-03-15 03:56:39 +0100 (Tue, 15 Mar 2011) | 4 lines Fix for a jline/history bug when the history file didn't already exist. Also expunged a bunch of history code which didn't get where it was going, including everything involving shutdown hooks. No review. ........ r24460 | extempore | 2011-03-15 03:56:58 +0100 (Tue, 15 Mar 2011) | 12 lines Various chronic annoyances with the repl addressed. Much improved transcript pasting. Now goes back in time to fix the transcript if it contains self-referential "res0, res1" etc. so that it works as it originally did. Shows which commands it is running, and places the commands with their result in a manner suitable for framing. Also, a new :paste command which accepts input up to ctrl-D, so you can enter companions without gyrations, or code from people who write in a repl unfriendly fashion by putting their curly braces on the next line (I'm looking at you mark harrah) or you name it, it's not picky. No review. ........ r24461 | extempore | 2011-03-15 05:02:35 +0100 (Tue, 15 Mar 2011) | 7 lines Addresses the issues swirling around Double.Epsilon and friends which were battled out in more than one venue and then aptly summarized by retronym in #3791. Thanks to Simon Ochsenreither for submitting a patch; I wasn't able to use too much of it because the source code for these types is generated, but effort is always appreciated. Closes #3791, and I'm tired and I'd hate to blow this one at this late date: review by rytz. ........ r24462 | extempore | 2011-03-15 06:55:38 +0100 (Tue, 15 Mar 2011) | 3 lines Deprecated scala.dbc. Wish there was a better way to deprecate a package than deprecating every individual thing. (There isn't, is there?) Closes #4313, no review. ........ r24463 | extempore | 2011-03-15 07:18:02 +0100 (Tue, 15 Mar 2011) | 1 line Slight tweak to case class deprecation message, no review. ........ r24464 | rytz | 2011-03-15 15:09:47 +0100 (Tue, 15 Mar 2011) | 1 line improved documentation for annotations in scala.annotation.target. closes #4250, no review. ........ r24465 | odersky | 2011-03-15 17:18:48 +0100 (Tue, 15 Mar 2011) | 1 line Fixes problem with getLinkPos, which sometimes failed on first try. ........ r24466 | phaller | 2011-03-15 17:42:00 +0100 (Tue, 15 Mar 2011) | 1 line Closes #3838. Review by prokopec. ........ r24467 | extempore | 2011-03-15 19:34:48 +0100 (Tue, 15 Mar 2011) | 1 line Brought all the collections pure interfaces up to date. No review. ........ r24468 | extempore | 2011-03-15 21:41:57 +0100 (Tue, 15 Mar 2011) | 11 lines Leveraged having a place to put some useful implicits which we sensibly are reluctant to introduce in the default scope. The test case pretty much sums it up. import Ordering.Implicits._ import Numeric.Implicits._ def f1[T: Numeric](x: T, y: T, z: T) = x + y + z def f2[T: Ordering](x: T, y: T, z: T) = if (x < y) (z > y) else (x < z) No review. ........ r24469 | extempore | 2011-03-16 07:31:59 +0100 (Wed, 16 Mar 2011) | 8 lines Deprecation patrol. There was a bug among the deprecation warnings due to my changing a map from mutable to immutable (which ought to be the good direction) because "def update" still lingers on immutable maps. I counted the days elapsed since it was marked for death (before 2.8.0) and added in the bugliness of what I was looking at and bid it farewell. Now removed: def update on immutable maps. No review. ........ r24470 | extempore | 2011-03-16 08:49:16 +0100 (Wed, 16 Mar 2011) | 15 lines Undoing some much too hacky code to implement a -jar option and then following wherever that led me. Tangible results include: * much beautified scala -help, including documenting some things never before documented in this plane of existence * an improved Jar abstraction * further systemization of system properties In addition, the jars created by -savecompiled are given the right manifest so the jar is runnable. That means you can: scala -savecompiled bippy.scala arg1 arg2 scala -jar bippy.scala.jar arg1 arg2 And both lines should yield the same result. No review. ........
| * Undoing some much too hacky code to implement a...Paul Phillips2011-03-1624-233/+257
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Undoing some much too hacky code to implement a -jar option and then following wherever that led me. Tangible results include: * much beautified scala -help, including documenting some things never before documented in this plane of existence * an improved Jar abstraction * further systemization of system properties In addition, the jars created by -savecompiled are given the right manifest so the jar is runnable. That means you can: scala -savecompiled bippy.scala arg1 arg2 scala -jar bippy.scala.jar arg1 arg2 And both lines should yield the same result. No review.
| * Deprecation patrol.Paul Phillips2011-03-1613-32/+25
| | | | | | | | | | | | | | | | | | | | | | warnings due to my changing a map from mutable to immutable (which ought to be the good direction) because "def update" still lingers on immutable maps. I counted the days elapsed since it was marked for death (before 2.8.0) and added in the bugliness of what I was looking at and bid it farewell. Now removed: def update on immutable maps. No review.
| * Leveraged having a place to put some useful imp...Paul Phillips2011-03-154-64/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Leveraged having a place to put some useful implicits which we sensibly are reluctant to introduce in the default scope. The test case pretty much sums it up. import Ordering.Implicits._ import Numeric.Implicits._ def f1[T: Numeric](x: T, y: T, z: T) = x + y + z def f2[T: Ordering](x: T, y: T, z: T) = if (x < y) (z > y) else (x < z) No review.
| * Brought all the collections pure interfaces up ...Paul Phillips2011-03-156-29/+39
| | | | | | | | | | Brought all the collections pure interfaces up to date. No review.
| * Closes #3838. Review by prokopec.Philipp Haller2011-03-153-12/+31
| |
| * Fixes problem with getLinkPos, which sometimes ...Martin Odersky2011-03-152-6/+6
| | | | | | | | | | Fixes problem with getLinkPos, which sometimes failed on first try.
| * improved documentation for annotations in scala...Lukas Rytz2011-03-157-234/+74
| | | | | | | | | | | | improved documentation for annotations in scala.annotation.target. closes #4250, no review.
| * Slight tweak to case class deprecation message,...Paul Phillips2011-03-152-7/+4
| | | | | | | | | | Slight tweak to case class deprecation message, no review.
| * Deprecated scala.dbc.Paul Phillips2011-03-1566-84/+89
| | | | | | | | | | | | package than deprecating every individual thing. (There isn't, is there?) Closes #4313, no review.
| * Addresses the issues swirling around Double.Eps...Paul Phillips2011-03-1517-69/+103
| | | | | | | | | | | | | | | | | | | | | | Addresses the issues swirling around Double.Epsilon and friends which were battled out in more than one venue and then aptly summarized by retronym in #3791. Thanks to Simon Ochsenreither for submitting a patch; I wasn't able to use too much of it because the source code for these types is generated, but effort is always appreciated. Closes #3791, and I'm tired and I'd hate to blow this one at this late date: review by rytz.
| * Various chronic annoyances with the repl addres...Paul Phillips2011-03-158-106/+231
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Various chronic annoyances with the repl addressed. Much improved transcript pasting. Now goes back in time to fix the transcript if it contains self-referential "res0, res1" etc. so that it works as it originally did. Shows which commands it is running, and places the commands with their result in a manner suitable for framing. Also, a new :paste command which accepts input up to ctrl-D, so you can enter companions without gyrations, or code from people who write in a repl unfriendly fashion by putting their curly braces on the next line (I'm looking at you mark harrah) or you name it, it's not picky. No review.
| * Fix for a jline/history bug when the history fi...Paul Phillips2011-03-152-40/+19
| | | | | | | | | | | | | | Fix for a jline/history bug when the history file didn't already exist. Also expunged a bunch of history code which didn't get where it was going, including everything involving shutdown hooks. No review.