summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* New reification code for symbols and types.Martin Odersky2011-08-235-0/+0
|
* applying patch provided by Topher, fixes #3501.Tiark Rompf2011-08-232-0/+20
|
* Created infrastructure for testing icode + sett...Paul Phillips2011-08-222-0/+643
| | | | | | | | | | | | | | | | Created infrastructure for testing icode + settings/partest yak shaving. See enclosed test files/run/inline-ex-handlers.scala. To compare optimized and unoptimized icode after a given phase, all you need in a partest source file is this: import scala.tools.partest.IcodeTest object Test extends IcodeTest { override def printIcodeAfterPhase = "inlineExceptionHandlers" } Other things can be done, see IcodeTest.scala. Review by ureche.
* Bug in optimizer eliminated potentially excepti...Paul Phillips2011-08-213-0/+23
| | | | | | Bug in optimizer eliminated potentially exceptional not-dead code. Streamlined isSideEffecting logic. Review by ureche.
* [recommit] Backend optimization: Inline excepti...Vlad Ureche2011-08-191-27/+28
| | | | | | [recommit] Backend optimization: Inline exception handlers. Review by dragos.
* fixed svn props and presentation check filesmichelou2011-08-1910-23/+23
|
* Major rewrite of the testing infrastructure for...Micro Dotta2011-08-1792-92/+12505
| | | | | | | | | Major rewrite of the testing infrastructure for the presentation compiler. Added several new tests that will be part of the nightly build. Once the move to SBT is completed I will look into how to extract the test infrastructure (as it should really not be living in the compiler codebase). Review by dragos
* Improved the error message given when a concret...Paul Phillips2011-08-162-0/+15
| | | | | | Improved the error message given when a concrete method implementation doesn't match the abstract one. No review.
* Removing the code which has been deprecated sin...Paul Phillips2011-08-1553-174/+125
| | | | | | | Removing the code which has been deprecated since 2.8.0. Contributed by Simon Ochsenreither, although deleting code is such fun one hesitates to call it a contribution. Still, we will. Closes SI-4860, no review.
* fixed text in error messagemichelou2011-08-114-8/+8
|
* Fixes SI-4507.Kato Kazuyoshi2011-08-112-0/+27
|
* Expanded the range of a warning, and made suppr...Paul Phillips2011-08-103-0/+33
| | | | | | | | | | | Expanded the range of a warning, and made suppressed warnings visible. Modified the positioning of "permanently hidden" errors so that when there is more than one, the later ones are not ignored. Also changed the error suppression code to emit the error anyway if -Ydebug was given (it is prefixed with "[suppressed] ".) Since I can't be the only one who wondered where his errors were vanishing to. No review.
* Reversed the values of "is" and "is not" in rec...Paul Phillips2011-08-1015-51/+63
| | | | | | | | | | | | | | | | | | | | | | | | Reversed the values of "is" and "is not" in recent for comprehension deprecation. DO NOT BLOW HATCH REPEAT DO NOT BLOW HATCH "Roger! Hatch blown." Events reveal it was all baby, no bathwater. It turns out that the specification is merely a document, not infallible holy writ as we had all previously believed. So it is not the ABSENCE of val in a for comprehension assignment which is deprecated, it is the PRESENCE of val. Summarizing again, more accurately perhaps: for (x <- 1 to 5 ; y = x) yield x+y // THAT's the one for (val x <- 1 to 5 ; y = x) yield x+y // fail for (val x <- 1 to 5 ; val y = x) yield x+y // fail for (x <- 1 to 5 ; val y = x) yield x+y // deprecated No review.
* Optimizations for Seq's implementations of sequ...Paul Phillips2011-08-092-0/+64
| | | | | | Optimizations for Seq's implementations of sequence search algorithms. Contributed by Rex Kerr. Closes SI-4828, no review.
* Another "great moments in java5 vs.Paul Phillips2011-08-092-2/+1
| | | | | | | have lived through before: java5 wrongly prints "volatile" next to bridge methods, because ACC_BRIDGE uses the same bit as ACC_VOLATILE. Result: partest failure! No review.
* Fix java signature generation for traits: no cl...Paul Phillips2011-08-094-0/+53
| | | | | | Fix java signature generation for traits: no classes as parents. Closes SI-4891, review by grek.
* Don't discard deprecation/unchecked warnings re...Paul Phillips2011-08-092-0/+84
| | | | | | | | | | | | | | | Don't discard deprecation/unchecked warnings regardless of settings. Changed warnings code to accumulate them rather than thoughtlessly discarding them and issuing its well-known taunt. In the repl you can take advantage of this with the :warnings command, which will show the suppressed warnings from the last line which had any. Be advised that at the moment it has some issues: unchecked warnings aren't making it out, and near repl startup neither are deprecation warnings, so don't open a bunch of tickets please. References SI-4594, no review.
* Test update to go with the previous patch.Paul Phillips2011-08-081-12/+13
| | | | | update on this matter is yet to come, no review.
* Fixing all the tests and source which still use...Paul Phillips2011-08-0815-30/+65
| | | | | | | Fixing all the tests and source which still use the old for comprehension syntax with vals where there are no vals and no vals where there are vals. No review.
* Fix for a bug in CharArrayReader which made tri...Paul Phillips2011-08-082-0/+31
| | | | | | | | | | Fix for a bug in CharArrayReader which made triple quoted strings fail to parse sometimes. Note: when the temptation strikes to adjust for special cases by letting the regular case happen and subsequently attempting to fix the ball of mutation by selectively applying what seems like the inverse operation, please consider the possibility that this is not the optimal approach. Closes SI-4785, no review.
* Better error message for case class/object matc...Paul Phillips2011-08-073-0/+29
| | | | | | Better error message for case class/object match confusion. Closes SI-4879, no review.
* Avoid some spurious errors after a cyclical ref...Paul Phillips2011-08-072-0/+8
| | | | | | Avoid some spurious errors after a cyclical reference error. Closes SI-2388, no review.
* Improved structural type error messages, and ot...Paul Phillips2011-08-063-0/+45
| | | | | | Improved structural type error messages, and other error message related boosts. Closes SI-4877, review by odersky.
* Fixed bug in the disambiguation of f(foo='bar')...Paul Phillips2011-08-062-0/+13
| | | | | | | | Fixed bug in the disambiguation of f(foo='bar') style method calls in the presence of overloading, parameterization, and by-name arguments. Took the opportunity to clean things up a little bit. Closes SI-4592, review by rytz.
* Disallowed implicit modifier on auxiliary const...Paul Phillips2011-08-062-0/+7
| | | | | | | Disallowed implicit modifier on auxiliary constructors, since it either silently accomplishes nothing or crashes the compiler. If it should do something useful let me know. Closes SI-4882, review by odersky.
* Don't want to chase NPEs around for the rest of...Paul Phillips2011-08-061-0/+15
| | | | | | | | Don't want to chase NPEs around for the rest of my life. Created "NoCompilationUnit" and "NoSourceFile" objects to represent not-present versions of these items. Seems a lot better than null. References SI-4859, got past NPE only to uncover the actual problem. No review.
* Attacked classpaths to get "." off of it when i...Paul Phillips2011-08-063-0/+7
| | | | | | | | | | | | | Attacked classpaths to get "." off of it when it's not actually specified. The commit makes me nervous, but there's no invisible way to fix something like this. ** Attention, this commit changes classpath handling ** We desperately need some way of testing that the classpath has certain qualities and does not have others; partest is not that way. Closes SI-4857, no review.
* Some "synthetic" code don't have RangePosition.Kato Kazuyoshi2011-08-062-0/+17
|
* Rewrote the case class synthetic equals method ...Paul Phillips2011-08-052-0/+3
| | | | | | | Rewrote the case class synthetic equals method to be more efficient and to cause fewer problems for compiler hackers who are always saying stuff like "the only place this comes up is case class equals..." No review.
* Issue a warning about classes/objects inside pa...Paul Phillips2011-08-043-0/+11
| | | | | Issue a warning about classes/objects inside package objects, no review.
* Cleanups in Namers and AddInterfaces emerging f...Paul Phillips2011-08-041-1/+1
| | | | | | | | Cleanups in Namers and AddInterfaces emerging from bugfixing attempts and comprehension pursuits. I appear to have accidentally fixed at least one bug, as there are new (correct) warnings when building the compiler involving permanently hidden imports. No review.
* Made error messages like "object List is not a ...Paul Phillips2011-08-023-1/+12
| | | | | | Made error messages like "object List is not a value" be a little more helpful about why that is. No review.
* Sped up traversal over mutable maps by a factor...Paul Phillips2011-08-011-0/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sped up traversal over mutable maps by a factor of two. There was this comment in HashTable explaining why foreach was implemented in terms of iterator. /* * We should implement this as a primitive operation over the * underlying array, but it can cause a behaviour change in edge cases * where: * - Someone modifies a map during iteration * - The insertion point is close to the iteration point. */ Item 1: foreach and iterator didn't behave the same if the map was mutated in the midst of the traversal anyway. Item 2: protecting some particular undefinition of inherently undefined behavior is a pretty unconvincing reason to impose a 2x penalty on foreach. Here are the before/after times for traversing the keys with foreach vs. with iterator. Same impact on values and on the map itself. The benchmark code is included in this commit. before: foreach 143700900 iterator 143848900 after: foreach 67024400 iterator 144890300 Respecting the fact that this might be causing some behavior somewhere to change, even though it would be pretty sick to be relying upon it, ** ATTENTION! POSSIBLE BEHAVIOR CHANGE! ** Review by dragos.
* Working on jar creation infrastructure.Paul Phillips2011-08-014-0/+83
| | | | | | | | | | | | | | | | | | output generation (but only then, since otherwise we're not creating the jar): 1) -Xmain-class foo.Bar will give the jar a Main-Class of foo.Bar 2) Alternatively, if there is only one runnable program, that will be the Main-Class 3) Always, the jar's manifest will have an entry for Scala-Compiler-Version. Not very relatedly, a warning is now issued when a module has a main method but a runnable program will not be generated. Closes SI-4861. This represents an opening step toward automatically recognizing mismatched bytecode situations: coarse, but useful and safe. Review by mirco.
* LiftCode works again, now integrated with new r...Martin Odersky2011-07-303-1/+5
| | | | | | | | LiftCode works again, now integrated with new reflection library. Other changes: def Literal(x: Any) has been deprecated, and all its uses removed. Modifiers has lost positions as fourth case class argument; is now a field, mirroring Tree.pos (this removes junk in patterns and makes reification simpler). Review by extempore.
* Getting LiftCode to work.Martin Odersky2011-07-304-0/+0
|
* Moved test out of pending, closes SI-3628, no r...Paul Phillips2011-07-293-3/+4
| | | | | Moved test out of pending, closes SI-3628, no review.
* Disabled all the old scala.reflect._ tests whic...Paul Phillips2011-07-296-0/+0
| | | | | | Disabled all the old scala.reflect._ tests which are now crash-failing, no review.
* Added two new compiler options:Paul Phillips2011-07-295-0/+93
| | | | | | | | | | | | | | | -Ywarn-adapted-args // also included in -Xlint -Yno-adapted-args The former warns when a () is inserted or an argument list is implicitly tupled. The latter errors under the same conditions. Using these options I found several bugs in the distribution which would otherwise be nearly impossible to spot. These bugs were innocuous (I think) but similar bugs could easily be (and have been) otherwise. Certain particularly threatening scenarios are at minimum warned about regardless of options given. Closes SI-4851, no review.
* Expression type argument instantiation should n...Paul Phillips2011-07-281-0/+12
| | | | | | | | Expression type argument instantiation should not fail in a context expecting Unit if there is any valid instantiation, because value discarding should kick in and offer a literal (). Closes SI-4853, review by odersky.
* Test case for SI-4603, no review.Paul Phillips2011-07-282-0/+15
|
* Scaladoc shouldn't drop type arguments to alias...Kato Kazuyoshi2011-07-282-0/+13
| | | | | | Scaladoc shouldn't drop type arguments to aliased tuple. Related to SI-4676. Review by pedrofurla.
* Changed forwarders not to generate final method...Paul Phillips2011-07-282-0/+33
| | | | | | | Changed forwarders not to generate final methods, which otherwise would induce VerifyErrors anytime the companion class was subclassed and had a method with the same signature. Closes SI-4827, no review.
* Test case closes SI-4172 - I think the output i...Paul Phillips2011-07-272-0/+18
| | | | | Test case closes SI-4172 - I think the output is right anyway - review by rytz.
* A few tests for pending and non-pending, no rev...Paul Phillips2011-07-274-0/+83
| | | | | A few tests for pending and non-pending, no review.
* "Freed the lisp test." Tweaked partest defaults...Paul Phillips2011-07-272-0/+0
| | | | | | "Freed the lisp test." Tweaked partest defaults a little in the hopes that seth tisue is correct in his analysis. No review.
* Fix/workaround for inliner bug uncovered by fin...Paul Phillips2011-07-275-0/+47
| | | | | | | | | | Fix/workaround for inliner bug uncovered by finalizing Option methods. Something in the backend is leaving open but empty blocks in the worklist. Rather than freaking out at the merest mention of an empty block, I quietly remove the empty ones. A proper fix will involve not leaving empty blocks lying around but we're on a schedule here people. Review by dragos.
* Adding the missing ParMap and GenMap methods.Aleksandar Pokopec2011-07-261-0/+52
| | | | | No review.
* Add test for SI-4839. No review.Philipp Haller2011-07-261-0/+8
|
* Scaladoc should decode symbolic type alias name.Kato Kazuyoshi2011-07-252-0/+17
|