summaryrefslogtreecommitdiff
path: root/src/library
Commit message (Collapse)AuthorAgeFilesLines
*-. Merge remote-tracking branches 'heathermiller/doc/linking' and ↵Paul Phillips2012-03-3019-241/+258
|\ \ | | | | | | | | | 'axel22/feature/future-compat' into develop
| | * Add methods in the Future companion object.Aleksandar Prokopec2012-03-291-2/+107
| | |
| | * Work on source compatibility between akka and scala futures.Aleksandar Prokopec2012-03-289-241/+135
| |/ |/| | | | | | | Removed some methods from execution contexts. Changed Awaitable interface.
| * Adds links to parallel collections overview in API docsHeather Miller2012-03-2910-4/+22
|/ | | | Now that there's an extensive parallel collections overview on http://docs.scala-lang.org, API comments should link to it ("see also" field). This commit also fixes a couple of broken links on some sequential collection types.
* Merge remote-tracking branch 'axel22/feature/collection-concurrent' into developPaul Phillips2012-03-279-98/+187
|\
| * Rename ConcurrentTrieMap to concurrent.TrieMap.Aleksandar Prokopec2012-03-279-98/+187
| | | | | | | | | | | | | | | | Introduced the collection.concurrent package and introduced the concurrent.Map trait there. Deprecated the mutable.ConcurrentMap trait. Pending work - introduce the appropriate changes to JavaConversions and JavaConverters.
| |
| \
| \
| \
*---. \ Merge remote-tracking branches 'manojo/issue/4488', 'leifwickland/patch-3', ↵Paul Phillips2012-03-274-9/+16
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'non/si-5609', 'adriaanm/topic/virtpatmat' and 'VladUreche/issue/5373' into develop Conflicts: test/scaladoc/scala/model/CommentFactoryTest.scala
| | | * | Fix .empty and add .ofDim factory method.Erik Osheim2012-03-251-2/+9
| |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit removes the (unused and unnecessary) elems* parameter from the 'empty' method. It also adds 'ofDim' which allows the user to allocate a FlatArray of a given size without providing actual elements. This fixes SI-5609.
| | * | Slight comment tweak for more colloquial English.Leif Wickland2012-03-251-1/+1
| |/ / |/| |
| * | Close issue #SI-4488Manohar Jonnalagedda2012-03-242-6/+6
| | | | | | | | | | | | | | | | | | The issue is closed as won't fix, but there are a few test cases with respect to the model relevant to the issue. Also, correct some typos.
* | | Scaladoc is now pointing to sources in githubVlad Ureche2012-03-251-1/+1
|/ / | | | | | | | | | | | | | | | | | | For snapshots, it points to the exact commit, for releases it points to the tag ("v" + maven version). The link now opens in a different tab, as opening in the same frame is not compatible with github (the page doesn't load for some reason). Left the repo url in test/review untouched because it points to the root of all LAMP repos. But... is anyone still using that script?!?
* | Document regex replacement strings behavior.Daniel C. Sobral2012-03-231-2/+33
| | | | | | | | | | | | | | | | | | All replacement methods use dolar signs to identify groups in the matched string, and backslashes to escape characters. Document this behavior, and provide a method that can be used to properly quote replacement strings when this behavior is not desired. Closes SI-4750.
* | Regex improvementsDaniel C. Sobral2012-03-232-4/+34
| | | | | | | | | | | | | | | | | | | | | | This adds findAllMatchIn to Regex to mirror other similar methods. It also overloads StringLike's "r", adding a version that accepts group names. It includes test cases for both methods. Closes SI-2460.
| |
| \
| \
| \
*---. \ Merge remote-tracking branches 'axel22/feature/pc-execution-contexts', ↵Paul Phillips2012-03-2246-2125/+2524
|\ \ \ \ | |_|_|/ |/| | | | | | | 'VladUreche/issue/5593', 'dragos/master', 'VladUreche/issue/5599', 'adriaanm/ticket/treeannot' and 'heathermiller/issue/5291' into develop
| | | * minimalist refactoring to allow annotating treesAdriaan Moors2012-03-222-9/+28
| | |/ | | | | | | | | | | | | | | | not tested for performance, but shouldn't add any memory overhead see https://github.com/adriaanm/scala/commit/44362c557f for an example usage
| | * Overhaul of JavaConver{sions,ters}.Paul Phillips2012-03-2110-1303/+1489
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initially motivated by SI-5580, then just motivated. I broke up the opaquely named JavaConversions and JavaConverters into the following traits encapsulating some permutation of { to java, to scala, bidirectional } { wrappers, decorators } I named everything consistently in terms of either Wrappers or Decorators. Decorators install those asJava/asScala methods onto collections of the right kind; Wrappers hide the process. JavaConversions then reduces to an object which (ill-advisedly) extends both WrapAsJava and WrapAsScala. And JavaConverters is an object extending DecorateAsScala and DecorateAsJava. However other more clearly named vals exist in the newly created scala.collection.convert package object. val decorateAsJava = new DecorateAsJava { } val decorateAsScala = new DecorateAsScala { } val decorateAll = new DecorateAsJava with DecorateAsScala { } val wrapAsJava = new WrapAsJava { } val wrapAsScala = new WrapAsScala { } val wrapAll = new WrapAsJava with WrapAsScala { } So for instance to import asScala decorators, and only those: scala> import scala.collection.convert.decorateAsScala._ import scala.collection.convert.decorateAsScala._ scala> new java.util.ArrayList[String].asScala groupBy (x => x) res0: scala.collection.immutable.Map[String,scala.collection.mutable.Buffer[String]] = Map() I propose we put those vals or a subset of them in the scala package object rather than way down in scala.collection.convert.
| * Lots of tedious warning and tree printing work.Paul Phillips2012-03-207-22/+25
| | | | | | | | | | | | | | | | | | | | | | Fewer deprecation warnings, prettier trees, prettier symbols, more polished error messages. Oh the interesting people you meet handling warnings, I feel sorry for you all that I get to do it all the time. One of the characters I met invited me into the "Dead Code Society" and that's what I'm doing on Tuesdays now. No of course you haven't, it's a SECRET society.
| * Merge remote-tracking branches 'vjovanov/duration-cleanup', ↵Paul Phillips2012-03-2017-262/+389
| |\ | | | | | | | | | 'adriaanm/topic/virtpatmat' and 'vjovanov/actor-hierarchy' into develop
| | * Merge branch 'issue/5054-usecase-cleanup'Vlad Ureche2012-03-2015-254/+370
| | |\ | | | | | | | | | | | | | | | | Conflicts: test/scaladoc/scala/html/HtmlFactoryTest.scala
| | | * Adapted usecases to full signature displayVlad Ureche2012-03-2014-243/+359
| | | |
| | | * Adapted indentation in scaladoc code blocksVlad Ureche2012-03-201-11/+11
| | | | | | | | | | | | | | | | | | | | and fixed a pesky crash in the syntax highlighting caused by invalid chars (0x0E) in MarkupParser.scala.
| | * | Tree adjustments.Paul Phillips2012-03-192-8/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I noticed that if we gave Ident a "qualifier" method which is always EmptyTree, a whole bunch of code could be simplified. A transparent subclass of Apply which preserves the source level "new" a little longer than never. Since productPrefix is tied up in reification - and oh I detest this "String"-based programming, we shouldn't have to wait until everyone learns this independently to change it - I added "printingPrefix" to Tree, which defaults to productPrefix but can be changed without breaking reify.
| * | | Cleaned up Duration for the standard library.Vojin Jovanovic2012-03-2013-530/+594
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Removed Timeout from the library. Each library should provide its own implementation of Timeout - Removed duration package object and replaced it with regular object - Removed usages of post Java 1.5 TimeUnit members - Added factory methods for FiniteDuration - Cleaned up some unnecessary comments - Merged duration DSL with Duration.scala file Review by: @phaller
* | | Merge branch 'master' into feature/pc-execution-contextsAleksandar Prokopec2012-03-21114-363/+574
|\| |
| * | Added +: and :+ extractors to mirror append/prepend.Josh Suereth2012-03-162-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | * +: does head/tail decomposition on any Seq * :+ does init/last decomposition on any Seq * Both preserve specific Seq types. Review by @odersky
| * | Eliminating warnings in Cleanup.Paul Phillips2012-03-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | And un-overabstracting it a bit. When a method takes four parameters in two parameter lists, one of which is a closure acting on a tuple, and it turns out there are a total of three call sites and they all pass identical values for the first three parameters, it may be time to brush up on your YAGNI.
| | |
| | \
| | \
| | \
| | \
| | \
| *-----. \ Merge remote-tracking branches 'VladUreche/feature/inheritdoc-clean', ↵Paul Phillips2012-03-1614-130/+192
| |\ \ \ \ \ | | |_|_|_|/ | |/| | | | | | | | | | 'acruise/t1118', 'hubertp/issue/5572', 'hubertp/topic/nightly-checkinit', 'axel22/feature/pc-ctrie', 'jsuereth/master-version-fixin' and 'axel22/feature/checkinit-transient' into develop
| | | | | * Finished migrating to new versioning schemeJosh Suereth2012-03-161-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: build.xml tools/get-scala-revision.bat
| | | | | * properties loading is now maven/osgi version aware. yippie.Josh Suereth2012-03-161-14/+13
| | |_|_|/ | |/| | |
| | | | * Renamed concurrent trie source files.Aleksandar Prokopec2012-03-162-0/+0
| | | | |
| | | | * Renaming Ctrie to ConcurrentTrieMap.Aleksandar Prokopec2012-03-162-77/+77
| | |_|/ | |/| |
| | | * Tweaked deprecation annotations to avoid warningAlex Cruise2012-03-152-2/+2
| | | |
| | | * SI-1118:Alex Cruise2012-03-152-462/+459
| | | | | | | | | | | | | | | | | | | | | | | | * Use new-style deprecation annotations * Slightly less cutesy test text * Move t1118.scala to the right directory
| | | * Cleaned up failed manual patchAlex Cruise2012-03-151-459/+459
| | | |
| | | * SI-1118 WIPAlex Cruise2012-03-1511-40/+107
| | | |
| * | | New option -Ypos-debug, and fixed range position breakage.Paul Phillips2012-03-151-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (Looks like there is more range position breakage yet, but this gets the outermost layer.) Channeling my struggles into a slightly easier future. % scalac -Ypos-debug -d /tmp ./src/library/scala/Predef.scala ./src/library/scala/Predef.scala:222: warning: Positioned tree has unpositioned child in phase extmethods def x = __resultOfEnsuring ^ parent: #7109 line 222 Select // (value __resultOfEnsuring in class Ensuring) child: #7108 Ident // (value $this) ./src/library/scala/Predef.scala:258: warning: Positioned tree has unpositioned child in phase extmethods def x = __leftOfArrow ^ parent: #7280 line 258 Select // (value __leftOfArrow in class ArrowAssoc) child: #7279 Ident // (value $this) two warnings found Or try this to really see some output: % scalac -Yrangepos -Ypos-debug
| * | | Merge remote-tracking branches 'axel22/feature/checkinit-transient' and ↵Paul Phillips2012-03-1589-161/+342
| |\ \ \ | | | |/ | | |/| | | | | 'lrytz/relativeLinks' into develop
| | * | Whitespace and a couple checkfile updates.Paul Phillips2012-03-142-4/+4
| | | |
| | * | Merge remote-tracking branch 'odersky/topic/inline' into merge-inlinePaul Phillips2012-03-1475-130/+320
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: lib/scala-compiler.jar.desired.sha1 lib/scala-library-src.jar.desired.sha1 lib/scala-library.jar.desired.sha1 src/compiler/scala/reflect/internal/Definitions.scala src/compiler/scala/reflect/internal/Symbols.scala src/compiler/scala/tools/nsc/Global.scala src/compiler/scala/tools/nsc/transform/Constructors.scala src/compiler/scala/tools/nsc/transform/Erasure.scala src/compiler/scala/tools/nsc/transform/SpecializeTypes.scala src/compiler/scala/tools/nsc/typechecker/Contexts.scala src/compiler/scala/tools/nsc/typechecker/RefChecks.scala src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala src/library/scala/Function0.scala src/library/scala/Function1.scala src/library/scala/Function10.scala src/library/scala/Function11.scala src/library/scala/Function12.scala src/library/scala/Function13.scala src/library/scala/Function14.scala src/library/scala/Function15.scala src/library/scala/Function16.scala src/library/scala/Function17.scala src/library/scala/Function18.scala src/library/scala/Function19.scala src/library/scala/Function2.scala src/library/scala/Function20.scala src/library/scala/Function21.scala src/library/scala/Function22.scala src/library/scala/Function3.scala src/library/scala/Function4.scala src/library/scala/Function5.scala src/library/scala/Function6.scala src/library/scala/Function7.scala src/library/scala/Function8.scala src/library/scala/Function9.scala test/files/codelib/code.jar.desired.sha1 test/files/neg/anyval-children-2.check test/files/run/programmatic-main.check
| | | * | Allows case classes as value classesMartin Odersky2012-03-071-1/+1
| | | | |
| | | * | Fixes to value classes: Flags now double definitions, private constructors ↵Martin Odersky2012-03-0668-148/+140
| | | | | | | | | | | | | | | | | | | | as errors. Fixed erasure scheme.
| | | * | Made 3 classes in the standard library into value classes.Martin Odersky2012-02-222-3/+3
| | | | |
| | | * | Compiler now ready to accept value classes in standard library. Time for a ↵Martin Odersky2012-02-222-1/+16
| | | | | | | | | | | | | | | | | | | | new STARR!
| | | * | Split StringAdd into StringAdd and StringFormatMartin Odersky2012-02-223-11/+26
| | | | |
| | | * | Made more traits universal.Martin Odersky2012-02-224-5/+5
| | | | |
| | | * | New FlatArray scheme for handling value classes.Martin Odersky2012-02-174-67/+155
| | | | |
| | | * | New scheme for "Rows" of value classes.Martin Odersky2012-02-152-0/+67
| | | | |
| | | * | Changed erasure behavior of arrays to use always boxed representation.Martin Odersky2012-02-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: test/files/run/Meter.scala
| | | * | Fixing problems with generation of isInstanceOf, classOf.Martin Odersky2012-02-141-4/+4
| | | | |
| | | * | Deprecating /:\. Fold should be used instead.Martin Odersky2012-02-121-0/+1
| | | | |