summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Adding the `seq` method to all collections.Aleksandar Pokopec2011-03-2213-19/+46
|
* Added test that signatures conform to their era...Martin Odersky2011-03-222-14/+76
| | | | | | Added test that signatures conform to their erasures. Work in progress. Review by extempore.
* Added headers with copyright messages.Martin Odersky2011-03-2215-3/+61
|
* closes #4345.Adriaan Moors2011-03-221-1/+1
|
* closes #4205: quick&dirty fix to force loading ...Adriaan Moors2011-03-221-0/+1
| | | | | | closes #4205: quick&dirty fix to force loading of info's and thus avoid order-dependency until we fix unsafeTypeParams for good. no review
* [scaladoc] Closes #4366. Review by pedrofurla.Kato Kazuyoshi2011-03-223-3/+47
|
* Not yet learned my lesson about partest and emp...Paul Phillips2011-03-222-25/+31
| | | | | | | | | | 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.
* [I'm laptop only so there's some chance this wi...Paul Phillips2011-03-2115-144/+170
| | | | | | | | | | | | | | | | | | | | | | | | [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.
* Closes #4202 again, closes #4363.Hubert Plociniczak2011-03-212-3/+2
|
* [scaladoc] Add HtmlFactoryTest and reorganize d...Kato Kazuyoshi2011-03-212-6/+10
| | | | | | [scaladoc] Add HtmlFactoryTest and reorganize directory structure. Reviewed by pedrofurla.
* The last checkin caused a test to time-out, but...Miguel Garcia2011-03-201-141/+71
| | | | | | | | | 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.
* for .NET bootstrapping (more coming).Miguel Garcia2011-03-203-50/+31
|
* minor fix for -Xmax-classfile-name. no reviewLukas Rytz2011-03-201-1/+1
|
* Commented #3928 patch.Martin Odersky2011-03-201-0/+4
|
* Restored erasure warning for isInstanceOf tests.Paul Phillips2011-03-201-1/+1
| | | | | no review.
* Fix for a big bug in lastIndexOfSlice and some ...Paul Phillips2011-03-191-104/+112
| | | | | | | 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.
* Oh yeah, now I remember why I started with leng...Paul Phillips2011-03-191-0/+1
| | | | | | Oh yeah, now I remember why I started with length overrides. Fix for soon to be failing test, no review.
* Fix for a slice related array view regression.Paul Phillips2011-03-191-2/+0
|
* I'm going to assume the patch I dropped off fiv...Paul Phillips2011-03-191-1/+1
| | | | | | | 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.
* Prevent a divergent implicit from terminating i...Paul Phillips2011-03-192-8/+45
| | | | | | | 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.
* Fix for crasher with Class objects.Paul Phillips2011-03-191-1/+2
| | | | | extempore. References #4305, no review.
* Removed long deprecated and obscure CloneableCo...Paul Phillips2011-03-194-57/+21
| | | | | | | | | | | | | 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.
* Added a :type command to the repl, no review.Paul Phillips2011-03-192-2/+10
|
* Some boundary conditions in range.Paul Phillips2011-03-194-22/+57
| | | | | | | 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.
* A couple more minor tweaks to power mode, and m...Paul Phillips2011-03-193-21/+79
| | | | | | | 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.
* [scaladoc] Closes #4357. Review by dubochet.Kato Kazuyoshi2011-03-191-1/+1
|
* [scaladoc] Closes #4361.Kato Kazuyoshi2011-03-191-2/+5
|
* rytz's patch for making our crazy long names a ...Paul Phillips2011-03-193-28/+19
| | | | | | | | 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.
* A minor overhaul of power mode.Paul Phillips2011-03-181-63/+136
| | | | | minute now. No review.
* Removing toPar* methods, since we've agreed the...Aleksandar Pokopec2011-03-1839-177/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Improved the error message when one gives inval...Paul Phillips2011-03-183-10/+17
| | | | | | Improved the error message when one gives invalid options to scala. Similar improvements for scalac/fsc/etc has to wait. No review.
* Accumulated work on fsc.Paul Phillips2011-03-1815-220/+246
| | | | | | | | | | | | | | | | | | | | 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.
* minor changesAntonio Cunei2011-03-181-3/+2
|
* Reworked windows batch files; should fix #2671.Antonio Cunei2011-03-181-32/+15
|
* close #4041. review by extemporeLukas Rytz2011-03-181-13/+22
|
* Always forget that checking system properties c...Paul Phillips2011-03-175-40/+100
| | | | | | | | | 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.
* Rebuilt jline for java 1.5. No review.v2.9-divergedPaul Phillips2011-03-171-0/+2
|
* [scaladoc] Closes #4306. Review by extempore.Kato Kazuyoshi2011-03-171-1/+3
|
* Removed uniqueness annotations. Review by rytz.Philipp Haller2011-03-176-106/+7
|
* 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-1610-25/+18
| | | | | | | | | | | 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-153-64/+64
| | | | | | | | | | | | | | | 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-151-12/+15
|
* 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-151-4/+1
| | | | | 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-1514-66/+94
| | | | | | | | | | | 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-152-106/+97
| | | | | | | | | | | | | | | | 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.