summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Added presentation memory leak test.Iulian Dragos2012-04-034-2/+142
|
* Pushed Symbol/Type creation partitioning further.Paul Phillips2012-04-0113-88/+148
| | | | | Yet more funnelling of immutable creation-time known information into the identities of symbols and types.
* More principled unwrapping of types.Paul Phillips2012-04-012-32/+53
| | | | | | | Made generic type unwrapper for use by the many methods which need various types to be transparent with respect to the operation being performed. AnnotatedType, PolyType, NullaryMethodType, and ExistentialType all commonly match this description.
* Cleaned up "isTupleTypeOrSubtype".Paul Phillips2012-04-016-41/+53
| | | | | More principled logic for determining if a type is a particular type or a specialized subtype of that type.
* Merge remote-tracking branch 'adriaanm/topic/partialfun' into developPaul Phillips2012-03-3015-227/+342
|\
| * specialization: see outer contexts to fix symbolsAdriaan Moors2012-03-302-2/+16
| | | | | | | | | | | | | | | | | | this corner case in Duplicators is hit when compiling the new AbstractPartialFunction (which is specialized) under -Yvirtpatmat TODO: why do we need to guard against cx.scope eq null in typers? review by @vladureche
| * virtpatmat support for the new partialfunctionAdriaan Moors2012-03-301-13/+54
| | | | | | | | | | | | avoid casting default call in applyOrElse: the result type of the match is always B1, not the result type inferred from typing the cases
| * old patmat support for the applyOrElse partial funAdriaan Moors2012-03-303-117/+96
| | | | | | | | | | | | minimal fixes for typedMatchAnonFun so it compiles TODO: support for AbstractTotalFunction (when match is exhaustive)
| * a fast, functional PartialFunction implementationPavel Pavlov2012-03-3012-96/+177
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | runtime.AbstractPartialFunction provides a default implementation for the new-style partial function. In principle this class is only subclassed by compiler-generated partial functions arising from matches. Either - the apply method (old-style partialfun) or - the applyOrElse method (current scheme) must be overridden, and the isDefinedAt method implemented. The applyOrElse method implementation is provided to ease the transition from the old scheme, since starr still generates old-style PartialFunctions, but locker's library has the new AbstractPartialFunction. Thus, this implementation is intended as a drop-in replacement for the old partial function, and does not require changes to the compiler. (compiler patches, both for old and new-style pattern matching, follow) - runtime.AbstractPartialFunction is based on PartialFunction.WithDefault Original version of FunctionWithDefault by Odersky (http://article.gmane.org/gmane.comp.lang.scala.internals/4032) - better performance for OrElse#applyOrElse, OrElse#lift, PF.cond - new combinator methods: PF#run, PF#runWith, PF.apply authored by @pavelpavlov, refactored by @adriaanm, review by @paulp
* | Tagged builds now display tag version. (maven = canonical).Josh Suereth2012-03-301-18/+34
| | | | | | | | | | | | Conflicts: build.xml
* | Fix for regression with inference at arity 21+.Paul Phillips2012-03-302-2/+16
| | | | | | | | A classic "off by two" error. Closes SI-4545, SI-5633.
* | Fix for string bug in genjvm.Paul Phillips2012-03-301-4/+16
| | | | | | | | It's -Ycheck:jvm, not -Ycheck:genjvm. There is no genjvm.
| |
| \
*-. \ Merge remote-tracking branches 'heathermiller/doc/linking' and ↵Paul Phillips2012-03-3020-242/+259
|\ \ \ | | | | | | | | | | | | '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-2810-242/+136
| | | | | | | | | | | | | | | | | | | | 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 pull request #344 from lrytz/classpathFixJosh Suereth2012-03-301-3/+2
|\ \ \ \ | |_|_|/ |/| | | remove unnecessary classpath entry
| * | | remove unnecessary classpath entryLukas Rytz2012-03-301-3/+2
|/ / /
* | | Cleaning up logging in specialization.Paul Phillips2012-03-293-68/+90
| | |
* | | A couple tests for pending.Paul Phillips2012-03-294-0/+62
|/ /
* | Revert the lisp test.Paul Phillips2012-03-282-3/+4
| | | | | | | | The lisp test enjoys the suffering of others.
* | Never write final fields outside of constructors.Paul Phillips2012-03-289-20/+86
| | | | | | | | | | | | Closes SI-3569, SI-3770. Also threw in experimental -Yoverride-vars. It's not robust.
* | Revived the lisp test.Paul Phillips2012-03-282-4/+3
|/ | | | | | All hail the lisp test! Closes SI-4579.
* Merge remote-tracking branch 'jsuereth/remove-sbaz-update-man' into developPaul Phillips2012-03-2711-661/+11
|\
| * Remove sbaz and references from master repository.Josh Suereth2012-03-2711-661/+11
| |
* | Merge remote-tracking branch 'axel22/feature/collection-concurrent' into developPaul Phillips2012-03-2717-162/+252
|\ \
| * | Rename ConcurrentTrieMap to concurrent.TrieMap.Aleksandar Prokopec2012-03-2717-162/+252
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Workaround for "package is not a value".Paul Phillips2012-03-273-24/+112
| | | | | | | | | | | | | | | | | | Not actually a fix, but when we see a package where a module is expected, it's not a great stretch to try the package object. References SI-5604.
| | |
| \ \
| \ \
| \ \
| \ \
| \ \
| \ \
| \ \
*-------. \ \ Merge remote-tracking branches 'manojo/issue/4488', 'leifwickland/patch-3', ↵Paul Phillips2012-03-2724-71/+261
|\ \ \ \ \ \ \ | |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'non/si-5609', 'adriaanm/topic/virtpatmat' and 'VladUreche/issue/5373' into develop Conflicts: test/scaladoc/scala/model/CommentFactoryTest.scala
| | | | | * | Fixes SI-5373Vlad Ureche2012-03-2713-14/+182
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And adds basic support for scaladoc model tests (class partest.ScaladocModelTest)
| | | | * | | [vpm] smarter type inference on when virtPatmat is onAdriaan Moors2012-03-273-1/+3
| | | | | | |
| | | | * | | [vpm] suppress refchecks in matchesAdriaan Moors2012-03-271-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | didn't realize this was done for the old pattern matcher, so now we have "feature"-parity we still infer bad type arguments for type patterns -- see e.g., pos/t602.scala -- also, inference changes when you turn a case class into the corresponding class&companion object, with the same unapply as the synthetic one TODO: can we merge inferConstructorInstance & inferTypedPattern, or at least make them behave consistently?
| | | | * | | Merge remote-tracking branch 'main/master' into topic/virtpatmatAdriaan Moors2012-03-275-73/+49
| | | | |\ \ \
| | | | * | | | [vpm] error message on missing parameter typeAdriaan Moors2012-03-262-38/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for selector-less matches that should yield a function
| | | | * | | | [vpm] skolemize result type in translateMatchAdriaan Moors2012-03-262-10/+14
| | | | | |/ / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... but not before, to avoid having skolems in typedMatchAnonFun cast result of missingCase (avoid skolem mismatch) relevant test cases: pos/existentials-harmful.scala, pos/gadt-gilles.scala, pos/t2683.scala, pos/virtpatmat_exist4.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-243-6/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | Merge pull request #333 from jsuereth/release-fixes-from-2.9.xJosh Suereth2012-03-273-12/+21
|\ \ \ \ \ | |_|_|/ / |/| | | | Release fixes from 2.9.x
| * | | | Removed git from source repo generation.Josh Suereth2012-03-271-0/+1
| | | | |
| * | | | Updated README for latest installationsJosh Suereth2012-03-271-10/+4
| | | | |
| * | | | No longer generate SBAZ documentation as part of distribution.Josh Suereth2012-03-271-1/+1
| | | | |
| * | | | Added latest link for sources so we can include them in distributions.Josh Suereth2012-03-271-1/+15
|/ / / /
* | / / Syntactic/organizational optimizations in Settings.Paul Phillips2012-03-265-73/+49
| |/ / |/| |
* | | Removing some foolishness.Paul Phillips2012-03-241-8/+4
| | | | | | | | | | | | I swear this change didn't work last time I was in this neighborhood.
* | | Merge pull request #326 from VladUreche/scripts/scaladoc-source-to-gitJosh Suereth2012-03-243-5/+20
|\ \ \ | |/ / |/| | Scaladoc is now pointing to sources in github
| * | Scaladoc is now pointing to sources in githubVlad Ureche2012-03-253-5/+20
|/ / | | | | | | | | | | | | | | | | | | 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?!?
* | Broke up def bridgeDefs.Paul Phillips2012-03-241-85/+99
| | | | | | | | | | | | Possibly the ugliest function in the compiler. Unfortunately also effectively obscuring serious bugs like SI-3452. Still won't be winning homecoming queen, but might be able to leave the house.
* | Merge remote-tracking branch 'adriaanm/topic/virtpatmat' into developPaul Phillips2012-03-233-20/+29
|\ \
| * | [vpm] defend against null in erroneous type patsAdriaan Moors2012-03-231-4/+4
| | |