summaryrefslogtreecommitdiff
path: root/test/files
Commit message (Collapse)AuthorAgeFilesLines
* A bunch of fixes for positions when dealing with partial functionsHubert Plociniczak2012-05-102-0/+5
|
*-. Merge commit 'refs/pull/510/head'; commit 'refs/pull/511/head'Paul Phillips2012-05-082-61/+65
|\ \
| * | Appendix. Typo that wasn't covered by the test suite.Hubert Plociniczak2012-05-082-61/+65
| | |
| | |
| \ \
| \ \
| \ \
*---. \ \ Merge commit 'refs/pull/504/head'; commit 'refs/pull/505/head'; commit ↵Paul Phillips2012-05-08152-579/+3520
|\ \ \ \ \ | | | |/ / | | |/| / | | |_|/ | |/| | 'refs/pull/506/head'; commit 'refs/pull/507/head'; commit 'refs/pull/508/head' into develop
| | | * Changes scala.math.signum to return negative zeros.Dominik Gruntz2012-05-081-0/+6
| | |/ | |/|
| | * Part II of the Lazy Vals Saga: Saving bitmap by the Three Musketeers: Byte, ↵Hubert Plociniczak2012-05-041-1/+1
| | | | | | | | | | | | Int and Long. And Boolean (hey, he also deserves some credit!).
| | * Part I of the Lazy Vals Saga: Bitmaps are no longer inherited.Hubert Plociniczak2012-05-031-2/+1
| |/ |/|
| * Fix for aliasing bug in reifier.Paul Phillips2012-05-081-0/+8
| | | | | | | | Closes SI-5769.
| * Test case closes SI-3798.Paul Phillips2012-05-072-0/+11
| |
| * Merge commit 'refs/pull/491/head' into developPaul Phillips2012-05-074-0/+89
| |\
| | * Fixes SI-5629.Aleksandar Prokopec2012-05-074-0/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds an additional argument to the unify method in specialization - `tparams`. When this parameter is set to `true`, unification is done over type parameters in poly types as well. Additionally, the unification in specialization now works over type bounds. This ensures that in the below example: trait Foo[@specialized(Int) A] { def bar[B <: A](b: B) {} } class IntFoo extends Foo[Int] { override def bar[B <: Int](b: B) {} } the method `bar` gets correctly determined as a method that needs a special override for its `bar$mcI$sp`.
| | |
| | \
| *-. \ Merge commit 'refs/pull/486/head'; commit 'refs/pull/487/head'; commit ↵Paul Phillips2012-05-071-4/+4
| |\ \ \ | | |_|/ | |/| | | | | | 'refs/pull/488/head'; commit 'refs/pull/489/head'; commit 'refs/pull/490/head' into develop
| | | * minor tag-related fixesEugene Burmako2012-05-071-4/+4
| | |/
| | |
| | \
| | \
| | \
| *---. \ Merge commit 'refs/pull/479/head'; commit 'refs/pull/480/head'; commit ↵Paul Phillips2012-05-063-0/+37
| |\ \ \ \ | | | | |/ | | | |/| | | | | | 'refs/pull/481/head'; commit 'refs/pull/482/head'; commit 'refs/pull/483/head'; commit 'refs/pull/484/head'; commit 'refs/pull/485/head' into develop
| | | | * Add missing methods to GenTraversableLike.Aleksandar2012-05-061-0/+20
| | | | |
| | * | | Test case closes SI-4568.Jason Zaugg2012-05-062-0/+17
| | |/ / | | | | | | | | | | | | What's the opposite of regression? Progression!
| * / / Test that primitive arrays aren't accepted as a Java generic array.Jason Zaugg2012-05-066-0/+52
| |/ / | | | | | | | | | | | | | | | | | | | | | They exercise both joint and separate compilation. This resolves SI-750 (which was somewhat unfairly merged with another ticket). The error message itself could do with refinement: in particular instance of the much beloved: found X, required X.
| | |
| | \
| *-. \ Merge commit 'refs/pull/477/head'; commit 'refs/pull/478/head' into developPaul Phillips2012-05-053-0/+59
| |\ \ \
| | | * | Don't admit primitive arrays as a generic Java varargs param.Jason Zaugg2012-05-052-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They were sneaking through as polymorphic Arrays and avoiding boxing. Closes SI-4216
| | * | | Test case closes SI-1785.Jason Zaugg2012-05-051-0/+7
| | |/ /
| * | | Merge commit 'refs/pull/124/head' into developPaul Phillips2012-05-052-0/+43
| |\ \ \ | | |/ / | |/| | | | | | | | | | Conflicts: src/library/scala/util/parsing/combinator/Parsers.scala
| | * | Fixes SI-4929, with a test to verify.Stephen Judkins2012-01-212-0/+43
| | | | | | | | | | | | | | | | Also fixes potential issue with Parsers.phrase not being reentrant; however, I was unable to actually reproduce this issue in practice. (The order in which lastNoSuccess was being set and compared seemed to guarantee that it would never actually be a problem).
| * | | What did you bring me Santa?Paul Phillips2012-05-051-1/+2
| | | | | | | | | | | | | | | | Oh boy, a checkfile! This is the best christmas ever!
| * | | A couple checkfile updates which snuck by.Paul Phillips2012-05-042-2/+4
| | | |
| * | | Have ArrayCharSequence reuse its Array.Paul Phillips2012-05-042-0/+275
| | | | | | | | | | | | | | | | Your know, for performance. Closes SI-5641.
| * | | Updated Symbol to record classfile origin.Paul Phillips2012-05-0415-17/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change should be transparent to anything using sourceFile, unless it was drinking from the inheritance well too deeply. Rather than squander the already allocated field for every ClassSymbol not being compiled from source, I'm now populating it with the file representing the class. This will make a broad range of things easier, like debugging, issuing useful error messages, symbol invalidation, signature verification, you name it. def sourceFile - still returns only source code files def binaryFile - returns only class files def associatedFile - returns whatever is there, if anything Performance: I may be mistaken, but I believe this is a zero-impact change. No new fields are allocated; fields which were null now hold a useful reference. The reference is to a file instance which was already being allocated and already long-lived. Compare error messages: // Version 1 % scalac a.scala error: type _$1 is defined twice // Version 2 % scalac a.scala error: type _$1 is defined twice conflicting symbols both originated in file './foo/package.class' Note: this may be due to a bug in the compiler involving wildcards in package objects one error found Bonus for people who read commit logs. Try this in the repl after starting power mode. ListClass.info.members groupBy (_.associatedFile) foreach { case (k, vs) => println("%s\n %s\n".format(k, vs map (_.defString) mkString "\n ")) }
| | | |
| | \ \
| | \ \
| | \ \
| | \ \
| | \ \
| | \ \
| | \ \
| *-------. \ \ Merge commit 'refs/pull/471/head'; commit 'refs/pull/473/head'; commit ↵Paul Phillips2012-05-049-0/+176
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 'refs/pull/474/head'; commit 'refs/pull/475/head'; commit 'refs/pull/476/head' into develop
| | | | | | * | | Fixes SI-5514.Aleksandar Prokopec2012-05-042-0/+54
| | | | | | | |/ | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The acceptIf and acceptMatch parsers now check for end of input. Review by moors.
| | | | | * / | Fixes si-5656.Aleksandar Prokopec2012-05-042-0/+12
| | | | | |/ /
| | | | * / / Fix for si-5577.Aleksandar Prokopec2012-05-042-0/+38
| | | | |/ /
| | | * / / Fix for si-5590.Aleksandar Prokopec2012-05-042-0/+35
| | | |/ /
| | * / / Fix for si-5018.Aleksandar Prokopec2012-05-041-0/+37
| | |/ / | | | | | | | | | | | | Methods keySet, values and withDefault now return serializable collections.
| * | | Fix for one of the oldest open soundness bugs.Paul Phillips2012-05-044-6/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes SI-963, since it was one of my random 30 it won the prize. The trick after adding the stability check (which has been sitting there commented out for 3+ years) was that implicit search depended on the wrongness, because memberWildcardType would create scopes with members of the form ?{ val name: tp } And since a def shouldn't match that, fixing it broke everything until I flipped it around: memberWildcardType should be seeking ?{ def name: tp } It could also search for a mutable value: the relevant quality is that it not be stable so it doesn't have a tighter type than the members it hopes to match.
| * | | Fix for broken non-local returns.Paul Phillips2012-05-044-0/+48
| |/ / | | | | | | | | | | | | Don't change the owner of a return if the new owner is nested inside the old owner. Closes SI-5612.
| * | Test case for SI-5106.Paul Phillips2012-05-032-0/+16
| | |
| * | Fix for implicit class / value class collision.Paul Phillips2012-05-031-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New this week, on SCALA. Implicit class: "Spin me up an implicit method with my name." Value class: "I need a companion object, pronto." Narrator: "All was well with this arrangement... UNTIL." What happens when these two wacky SIPs get together in the very same class? You'll laugh until, eventually, you cry! Weeknights at 9:30pm, only on SCALA. Closes SI-5667.
| * | Clarified the status of SI-13.Paul Phillips2012-05-031-31/+30
| | | | | | | | | | | | Through the oracle of pos/t1279a.scala.
| * | Fix for Dynamic interaction with private methods.Paul Phillips2012-05-032-0/+12
| | | | | | | | | | | | | | | | | | Don't let inaccessible methods prevent calls to *Dynamic, otherwise we are at the mercy of every "private" alteration in every class we inherit. Closes SI-5040.
| * | Moved passing tests from pending to files.Paul Phillips2012-05-0318-0/+390
| | | | | | | | | | | | | | | | | | | | | | | | Most are pattern matcher bugs fixed by virtpatmat. A few are reifier, package object, or miscellaneous. I threw in an original test for SI-2337, to go with those for SI-1697, SI-3705, SI-4415, and SI-1357, all of which (in the interests of making sure this basket has all the eggs) I am closing.
| * | Fix for SI-3718.Paul Phillips2012-05-032-0/+7
| | | | | | | | | | | | | | | | | | | | | And for a bunch of other tickets where we unleash a stack trace rather than printing a sensible error message. But SI-3718 is a continuations plugin crash, now a reasonable if somewhat vague error.
| * | Test cases for SI-5472, SI-5399, SI-5685.Paul Phillips2012-05-032-0/+91
| | |
| * | Fix for SI-5608, crasher with value classes.Paul Phillips2012-05-032-0/+13
| | | | | | | | | | | | | | | | | | Anyone who doubts the importance of avoiding duplication is invited to look closely at the cause of this bug as revealed in this one line patch.
| * | Test case closes SI-5655.Paul Phillips2012-05-032-0/+40
| | | | | | | | | | | | | | | Still some issues with the repl namespace, which should be managed in a first class way, not defensively/reactively.
| * | Hardening implicit classes.Paul Phillips2012-05-032-0/+11
| | | | | | | | | | | | Closes SI-5728.
| * | Moved a warning behind -Xlint.Paul Phillips2012-05-031-1/+1
| | | | | | | | | | | | | | | | | | Eventually "-Xlint would have told you not to do that" will be a catchphrase, like "I love it when a plan comes together" or "respect mah authoritah."
| | |
| | \
| | \
| | \
| *---. \ Merge commit 'refs/pull/467/head'; commit 'refs/pull/468/head'; commit ↵Paul Phillips2012-05-0339-96/+339
| |\ \ \ \ | | | | | | | | | | | | | | | | | | 'refs/pull/469/head'; commit 'refs/pull/470/head' into develop
| | | * | | SI-5703: normalize refined types moreAdriaan Moors2012-05-036-23/+53
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to improve Array[T] java-interop with T[], normalize Object with Object{} to Object fix #SI-5688 by flattening refined types in parents updated check files to reflect flattening of refined types and updated position for refined types
| | | * | Merge branch 'may2' of /scala/trunk into developPaul Phillips2012-05-022-0/+52
| | | |\ \
| | | | * | Unanchored regex extractors.Paul Phillips2012-05-022-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is really by Lanny Ripple <lanny@spotinfluence.com>, but I reworked it because I didn't want to put any more methods onto String. Instead, there is a method on Regex which removes the anchoring quality. """\d\d'"".r.unanchored
| | | * | | Merge commit 'refs/pull/317/head' into developPaul Phillips2012-05-022-0/+29
| | | |\ \ \ | | | | |/ / | | | |/| |