summaryrefslogtreecommitdiff
path: root/src/library
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1596 from soc/SI-6632+SI-6633Josh Suereth2012-11-201-49/+44
|\ | | | | SI-6632 SI-6633 Fixes issues and data corruption in ListBuffer
| * SI-6632 SI-6633 Fixes issues and data corruption in ListBufferSimon Ochsenreither2012-11-091-49/+44
| | | | | | | | | | - Disallow negative positions for ListBuffer#insert/insertAll/update - Fix data corruption issue in ListBuffer#insert
* | Merge pull request #1597 from soc/SI-6634Josh Suereth2012-11-201-0/+5
|\ \ | | | | | | SI-6634 Fixes data corruption issue in ListBuffer#remove
| * | SI-6634 Fixes data corruption issue in ListBuffer#removeSimon Ochsenreither2012-11-161-0/+5
| |/ | | | | | | | | This is the cut-down version with minimally invasive changes, e. g. keeping the "auto-correcting" bounds algorithm.
* | Merge pull request #1641 from sschaef/doc-update/multimapJosh Suereth2012-11-201-3/+32
|\ \ | | | | | | Scaladoc update for collection.mutable.MultiMap
| * | Scaladoc update for collection.mutable.MultiMapSimon Schaefer2012-11-171-3/+32
| |/ | | | | | | | | | | Addition of source code example on how to use a MultiMap and its defined methods. Minor correction in documentation for method `removeBinding`.
* / Fixes SI-6150 - backport to 2.10.x branch.Aleksandar Prokopec2012-11-145-31/+47
|/
* Merge branch '2.10.0-wip' into merge-2.10.0Josh Suereth2012-11-05638-655/+691
|\
| * Merge pull request #1559 from heathermiller/copyright-updateJosh Suereth2012-11-04638-643/+643
| |\ | | | | | | Updated copyright dates throughout compiler and stdlib for upcoming release
| | * Brings all copyrights (in comments) up-to-date, from 2011/12 to 2013Heather Miller2012-11-02638-643/+643
| | |
| * | Fix for SI-6600, regression with ScalaNumber.Paul Phillips2012-11-022-6/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not much in the end; I divided ScalaNumericConversions into two traits such that the ScalaNumericAnyConversions can be used in value classes, and ScalaNumericConversions can override methods in ScalaNumber (since one trait cannot do both those things.) The fact that ScalaNumber is privileged for equality but a) extends java.lang.Number and therefore b) cannot be a value class is something we will want to revisit real soon.
| * | Typo-fix in scala.concurrent.Future, thanks to @pavelpavlovHeather Miller2012-11-021-1/+1
| | |
| * | SI-6399 Adds API docs for Any and AnyValHeather Miller2012-11-021-5/+32
| |/ | | | | | | | | - Updates AnyVal docs to address value classes. - Updates Any docs to address universal traits.
* | Merge pull request #1522 from possiblywrong/2.10.xJosh Suereth2012-10-311-1/+4
|\ \ | | | | | | SI-6488: Fix for race with open I/O fds
| * | SI-6488: Stop I/O threads prior to Process destructionDeclan Conlon2012-10-261-1/+4
| | |
* | | Fixes SI-6559 - StringContext not using passed in escape function.Josh Suereth2012-10-301-1/+1
|/ / | | | | | | | | As reported by Curtis Stanford, with indication of what to fix. standardInterpolator was not correctly calling the passed in process function, so raw strings were not really raw.
* | Merge remote-tracking branch 'origin/2.10.0-wip' into merge-210-wip-210Paul Phillips2012-10-1611-85/+119
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # By Eugene Burmako (23) and others # Via Josh Suereth (12) and others * origin/2.10.0-wip: (54 commits) JavaUniverse Moved @contentDiagram in Symbols Adds lots of new documentation for TypeTags, Mirrors, Universes and more runtime.JavaUniverse - put ungrouped members at the top Forgotten annotation in Annotations Diagram tweaking Grouping for reflection and macros fixes a typo scala.reflect.api.Symbols documentation Symbols docs cleanup, mostly moved to guide scala.reflect.api.Position documentation scala.reflect.api.StandardNames documentation scala.reflect.api.Constants documentation removed docs for internal TypeCreator and TreeCreator simplified reflection docs for trees Rearranged some reflection docs, moving things to the guide reflection docs improvements and moves to doc page docs for reflection and macros SI-6509 Correct @template owners SI-6155 Scaladoc @template diagrms ...
| * Merge pull request #1492 from scalamacros/pullrequest/reflection-docsv2.10.0-RC1Josh Suereth2012-10-111-10/+25
| |\ | | | | | | Pullrequest/reflection docs
| | * Adds lots of new documentation for TypeTags, Mirrors, Universes and moreHeather Miller2012-10-111-10/+25
| | | | | | | | | | | | | | | Additionally includes improvements, formatting fixes, and link additions and fixes.
| * | Merge pull request #1489 from heathermiller/issue/6453Josh Suereth2012-10-111-2/+1
| |\ \ | | |/ | |/| SI-6453 Documentation links for @switch are broken
| | * SI-6453 Documentation links for @switch are brokenHeather Miller2012-10-101-2/+1
| | |
| * | Merge pull request #1486 from heathermiller/issue/6099Josh Suereth2012-10-102-56/+69
| |\ \ | | |/ | |/| SI-6099 - Scaladoc for scala.concurrent incomplete
| | * SI-6099 - Scaladoc for scala.concurrent incompleteHeather Miller2012-10-102-56/+69
| | | | | | | | | | | | | | | | | | This is a rebase and resubmission of @phaller's pull https://github.com/scala/scala/pull/1485 With the reviewers' comments additionally addressed
| * | Merge pull request #1488 from dotta/topic/deprecated-instrumentation-apiJosh Suereth2012-10-101-0/+1
| |\ \ | | |/ | |/| Deprecated instrumentation API
| | * Deprecated instrumentation APIMirco Dotta2012-10-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The instrumentation logic needed by the Scala IDE Worksheet is currently part of the Scala project, but it doesn't need to be. I already have a PR ready for completely removing the instrumentation logic, but I considered it too risky at this point for 2.10.0 release (an oversight can lead to the impossibility of running the worksheet with Scala 2.10.0). For the moment, I believe it's better to deprecate the whole instrumentation API in 2.10.0, and the PR for removing the instrumentation logic will target 2.10.1 or 2.11.0. Besides deprecating the instrumentation API, this commit also raised visibility of `interruptsEnabled` member in `Global`. This change alone is sufficient for moving the instrumentation logic outside of the compiler, and it is needed because the Presentation Compiler thread should never be interrupted while instrumenting a source. This commit is related to SI-6458
| * | SI-6440: Revert change to `TraversableLike.filterNot`Grzegorz Kossakowski2012-10-091-6/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit df9f470f14262b9b1002f022c2620d8c38835805 introduced a change to `TraversableLike.filterNot` which broke Stream implementation that does override `filter` implementation but does not override `filterNot` implementation. This shows clearly that reusing code for strict and non-strict collections is very problematic. Added a test-case covering this problem. Closes SI-6440. Review by @retronym.
| * undeprecates manifests for 2.10.0Eugene Burmako2012-10-035-11/+22
| | | | | | | | | | | | | | | | Since scala-reflect.jar is going to be declared experimental for 2.10.0, it doesn't make sense to deprecate manifests in favor of type tags. Class manifests, however, ARE deprecated for class tags, because class tags don't require scala-reflect.jar and are generated independently of type tags.
* | Merge pull request #1426 from Blaisorblade/issue/6422Josh Suereth2012-10-101-0/+3
|\ \ | |/ |/| SI-6422: add missing Fractional and Integral alias in scala package
| * SI-6422: add missing Fractional and Integral alias in scala packagePaolo G. Giarrusso2012-09-291-0/+3
| |
* | Improved the `scala.language` documentationVlad Ureche2012-10-022-25/+75
| | | | | | | | | | | | | | | | | | Also corrected the links in the library rootdoc. **Note: We need to fast track this commit so it reaches master in the next 12 hours, before we generate the next nightly docs.** Review by @odersky
* | Merge pull request #1435 from paulp/stringcontext-docPaul Phillips2012-10-011-6/+6
|\ \ | | | | | | Fix StringContext documentation.
| * | Fix StringContext documentation.Paul Phillips2012-10-011-6/+6
| | | | | | | | | | | | | | | It doesn't call "new", as I discovered after some head scratching.
* | | Merge pull request #1424 from soc/SI-6449Paul Phillips2012-10-0110-12/+12
|\ \ \ | |/ / |/| | SI-6449 Adds version arg to @deprecated usages (non-compiler sources)
| * | Fix incomplete version strings (2.10 -> 2.10.0)Simon Ochsenreither2012-09-299-10/+10
| | |
| * | SI-6449 Adds version arg to @deprecated usages (non-compiler sources)Simon Ochsenreither2012-09-291-2/+2
| | |
* | | Merge remote-tracking branch 'scala/2.10.x' into 2.10.0-wipGrzegorz Kossakowski2012-09-291-2/+4
|\ \ \ | |/ / |/| |
| * | Merge pull request #1347 from soc/SI-6380Grzegorz Kossakowski2012-09-281-2/+4
| |\ \ | | | | | | | | SI-6380 Add @throws[Exception]
| | * | SI-6380 #1 Add @throws[Exception]Simon Ochsenreither2012-09-211-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change allows an additional notation of the @throws annotation: Old-style: @throws(classOf[Exception]) New-style: @throws[Exception] The optional String argument moves @throws in line with @deprecated, @migration, etc. and prevents confusion caused by the default inheritance of ScalaDoc comments and the non-inheritance of annotations. Before: /** This method does ... * @throws IllegalArgumentException if `a` is less than 0. */ @throws(classOf[IllegalArgumentException]) def foo(a: Int) = ... Now: /** This method does ... */ @throws[IllegalArgumentException]("if `a` is less than 0") def foo(a: Int) = ... ScalaDoc @throws tags remain supported for cases where documentation of thrown exceptions is needed, but are not supposed to be added to the exception attribute of the class file. In this commit the necessary compiler support is added. The code to extract exceptions from annotations is now shared instead of being duplicated all over the place. The change is completely source and binary compatible, except that the code is now enforcing that the type thrown is a subtype of Throwable as mandated by the JVM spec instead of allowing something like @throws(classOf[String]). Not in this commit: - ScalaDoc support to add the String argument to ScalaDoc's exception list - Adaption of the library
* | | | add a bit about unicode to scaladoc.Josh Suereth2012-09-281-0/+7
|/ / /
* | / Finish docs for string interpolation.Josh Suereth2012-09-271-3/+60
| |/ |/|
* | Privatize some collections internals.Paul Phillips2012-09-261-5/+5
| | | | | | | | These should not be public vars.
* | Don't overload implicit methods.Paul Phillips2012-09-262-3/+3
| | | | | | | | It is the cause of much unhappiness, and it is not necessary.
* | Don't write public methods with non-public parameters.Paul Phillips2012-09-261-4/+4
| | | | | | | | | | | | | | | | | | If the parameter types of a method have lower visibility than the method itself, then the method cannot be overridden because the parameter types cannot be expressed. This is a confusing and frustrating situation to expose via public API. Such methods should either have access as strong as their parameter types, or be made final.
* | Don't write side-effecting nullary methods.Paul Phillips2012-09-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Style says never write methods like this: def foo: Unit If it is Unit, then it is side-effecting, and should be def foo(): Unit Since -Xlint warns about this, we must adhere to its dictate.
* | Avoid relying on auto-tupling.Paul Phillips2012-09-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When you call Some(a, b, c) The compiler does eventually figure out that you meant Some((a, b, c)) However the compiler finds this inordinately taxing, and because this auto-tupling is dangerous, -Xlint warns about it. In the interests of being able to hear -Xlint's important points, we write Some((a, b, c)) to give it less to warn about.
* | Improves SI-6409 - Add note to string flatMap about evaluation.Josh Suereth2012-09-251-0/+3
| | | | | | | | | | | | Note: flatMap has to evaluate the stream until it finds a head for the new stream. This is a limitation that will exist for 2.10.0, but the bug will remain open.
* | Merge pull request #1373 from smessmer/2.10.xGrzegorz Kossakowski2012-09-243-3/+3
|\ \ | | | | | | Changed implementation comments from /** */ to /* */ for ScalaDoc
| * | Changed implementation comments from /** */ to /* */, so ScalaDoc remains ↵smessmer2012-09-213-3/+3
| | | | | | | | | | | | reasonable
* | | Merge pull request #1379 from retronym/topic/boxing-conversionsPaul Phillips2012-09-221-5/+0
|\ \ \ | | | | | | | | Remove BoxingConversions from the scala package.
| * | | Remove BoxingConversions from the scala package.Jason Zaugg2012-09-221-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | And add it to two test cases that rely on it. It is a remnant of the now-removed FlatArray (8cc7de74d).