summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Disabled another presentation compiler test.Paul Phillips2011-12-093-0/+0
| | | | | | It foiled me right on the cusp of a successful windows nightly. https://scala-webapps.epfl.ch/jenkins/job/scala-nightly-windows/1170/consoleText
* Merge remote-tracking branches 'VladUreche/issue/5054' and ↵Paul Phillips2011-12-086-13/+5
|\ | | | | | | 'jsuereth/dont_resolve_releases'
| *-. Merge remote-tracking branches 'soc/SI-4990', ↵Paul Phillips2011-12-076-13/+5
| |\ \ | | | | | | | | | | | | 'fedgehog/docs_fix_for_scala.Either.cond___SI-5113' and 'kepler/ticket/5266' into develop
| | | * Fix reflective toolbox producing invalid bytecodeEugene Burmako2011-12-075-10/+3
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wrapper method for AST undergoing a reflective compilation has been incorrectly marked as static. This was off the radars until one day the code being compiled declared a top-level method. During flatten that method got hoisted into the wrapper module, and its invocation got translated into an instance call upon the module. This led to static wrapper method trying to call an instance method, and that blew up the bytecode verifier. More info: https://issues.scala-lang.org/browse/SI-5266. Fixes SI-5266, review by @odersky.
| | * Migration message and version cleanupSimon Ochsenreither2011-12-071-3/+2
| |/ | | | | | | | | | | | | | | | | | | The @migration annotation can now be used like @deprecation. Old syntax is still supported, but deprecated. Improve wording and consistency of migration messages, migration warnings also print the version in which the change occurred now. Partially fixes SI-4990.
* / Fixed #5054, #5287Vlad Ureche2011-12-089-14/+173
|/ | | | | | | | | | | | | | | | | | | | | | | | | | The documents with use cases should be restructured like: /** * The full definition, either used with an implicit value or with an explicit one. * * Some more explanation on implicits... * * @param lost a lost parameter * @return some integer * * @usecase def test(): Int * * This takes the implicit value in scope. * * Example: `test()` * * @usecase def test(explicit: Int): Int * * This takes the explicit value passed. * * Example: `test(3)` */ def test(implicit lost: Int): Int
* Merge remote-tracking branch 'soc/scaladoc-spacing' into developPaul Phillips2011-12-061-7/+7
|\
| * Fixes the annoying spaces between name, type params and params in ScalaDoc.Simon Ochsenreither2011-12-061-7/+7
| |
* | Merge remote-tracking branches 'blair/documentation-typo-fix' and ↵Paul Phillips2011-12-064-5/+5
|\ \ | | | | | | | | | 'blair/remove-documentation-stutters' into develop
| * | Fix documentation stutters.Blair Zajac2011-12-064-5/+5
| | |
* | | Fix documentation typo.Blair Zajac2011-12-061-1/+1
|/ /
* | Disabled non-deterministic tests.Paul Phillips2011-12-0561-0/+0
| | | | | | | | | | | | Everyone's favorite "will they or won't they" tests, akka and timeofday. They will be welcomed back into the fold once they can stick to a decision on whether to pass or fail.
* | Another test pack for reflectionEugene Burmako2011-12-0559-0/+1200
| | | | | | | | Also see https://github.com/scala/scala/pull/25.
* | Merge remote-tracking branch 'kepler/topic/reifytests'Paul Phillips2011-12-0428-0/+352
|\ \
| * | Test pack for various flavors of reflection.Eugene Burmako2011-12-0528-0/+352
| | |
| | |
| \ \
*-. \ \ Merge remote-tracking branches 'kepler/topic/reifyclasses' and ↵Paul Phillips2011-12-044-1/+17
|\ \ \ \ | | | | | | | | | | | | | | | 'ijuma/feature/signum' into develop
| | * | | Delegate to Java's implementation of signum for Long and Int.Ismael Juma2011-12-031-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Java implementation is faster as it doesn't have branches. java.lang.Math includes implementations of signum for Double and Float, but I didn't change the ones in scala.math because there is a difference on how negative zero is handled.
| * | | | Reification of classes now produces trees that can be compiled and run.Eugene Burmako2011-12-043-1/+2
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Multiple minor fixes to Martin's implementation of reflection infrastructure. Dominating theme is allowing for the fact that compilation via reflection involves numerous exports/imports between various reflection universes. Fixes SI-5230. Review by @odersky.
* / | | Tweaked ident suggestions.Paul Phillips2011-12-045-10/+6
|/ / / | | | | | | | | | | | | | | | | | | Rolled damaru-levenshtein algorithm back to my original "pure" version. Cut max distance to 1. Turned on by default because now it offers nothing unexpected, and removed short-lived -Ysuggest-idents option.
* | | Added -Ysuggest-idents.Paul Phillips2011-12-033-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Suggest possible alternatives when an identifier is not in scope. % scala -Ysuggest-idents scala> import scala.collection.mutable._ import scala.collection.mutable._ scala> new MistBuffer <console>:11: error: not found: type MistBuffer (similar: ListBuffer, Buffer) new MistBuffer ^ Too bad, no MistBuffer. We'll settle for ListBuffer.
* | | Eliminated redundant error message.Paul Phillips2011-12-033-1/+21
| | | | | | | | | | | | | | | No secondary "reassignment to val" for unknown identifiers in assignment position.
* | | Fixing wrong-testing test.Paul Phillips2011-12-021-1/+1
|/ /
* | Test case closes SI-4758.Paul Phillips2011-12-021-0/+17
| |
* | Test case closes SI-5084.Paul Phillips2011-12-021-0/+5
| |
| |
| \
| \
| \
| \
| \
*-----. \ Merge remote-tracking branches 'dcsobral/parser/NoSuccessMessages', ↵Paul Phillips2011-12-028-0/+223
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | 'dcsobral/parserFilter', 'soc/library-range-sum', 'szeiger/feature/enumeration-valueset', 'szeiger/issue/5117' and 'jsuereth/pull-binary-error-message' into develop
| | | * | | Make Enumeration.ValueSet SerializableStefan Zeiger2011-12-021-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | Closes SI-5117.
| | | * | | Enumeration and Enumeration.ValueSet improvementsStefan Zeiger2011-12-022-0/+41
| | | | |/ | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Make Enumeration.ValueSet a SortedSet and back it by a BitSet - Add toBitMask and fromBitMask methods for value sets - Add an Ordering for the values - Deprecate names seq in the Enumeration constructor - Add + method to Value for easy ValueSet creation
| | * / | Makes Range#sum an O(1) operation instead of an O(n) one.Simon Ochsenreither2011-12-022-0/+121
| | |/ / | | | | | | | | | | | | Partially fixes SI-4658. NumericRange stays slow, thanks to the brilliant idea that Numeric doesn't need a division operation.
| * | / Add filter/withFilter method to ParserDaniel Capo Sobral2011-12-024-0/+37
| | |/ | |/| | | | | | | | | | | | | | | | Complement map and flatMap when used in for comprehensions. This is required when pattern matching is used on the result of the generators. It is implemented through a new filterWithError method on ParseResult.
* / | Add withErrorMessage/withFailureMessage to Parser.Daniel C. Sobral2011-12-022-0/+39
|/ / | | | | | | Can be used to reliably override the default no success messages.
* / Tests for SI-3481.Simon Ochsenreither2011-12-022-0/+57
|/ | | | Closes SI-3481.
* Re-enable RedBlack's ScalaCheck test, which was disabled at r21829.Daniel C. Sobral2011-12-012-157/+213
| | | | | | | | | | I haven't been able to find any reason for that reversal, but this version is an improved version provided with SI-3796, which never got committed along with the patch. This version generates trees directly instead of using the methods under test. It also puts an upper bound on tree size and, therefore, execution time.
* Improved BitSet implementationsStefan Zeiger2011-12-012-0/+131
| | | | | | | | | | | | | | - Mutable and immutable BitSets now extend SortedSet, using a fixed Ordering.Int and an efficient bit mask based rangeImpl() - fromArray methods in both implementations are deprecated in favor of new fromBitMask and fromBitMaskNoCopy methods - New toBitMask method for converting bit sets back to Array[Long] bit masks - immutable.BitSet uses a more efficient Builder, based on mutable.BitSet (closes SI-4647) - Delete scala.tools.nsc.util.BitSet (not used anywhere) Review by @odersky
* Fix for octal test.Paul Phillips2011-11-291-1/+4
| | | | | | At the last minute I made -Xfuture leading-0 an error and failed to update the checkfile.
* improve cps handling of if-then-else. no review.Tiark Rompf2011-11-294-0/+69
|
* Fixed -Xfuture 5.ds, deprecated 0-octal.Paul Phillips2011-11-298-22/+35
| | | | | | | | I messed up my trip to the future the first time around; now in the future 5.f is not an error but an attempt to call method "f" on 5 like nature intended. (Thank you simon for catching this.) And deprecated leading 0 for octal. Closes SI-5205.
* Moved the test for SI-5230 from files to pendingEugene Burmako2011-11-292-0/+0
|
* Added the check against UnitClass in freeLocals...Eugene Burmako2011-11-291-0/+3
| | | | | | Added the check against UnitClass in freeLocalsTraverser. Closes SI-5245. Review by odersky.
* Test for SI-5230Eugene Burmako2011-11-292-0/+20
|
* Revised macro defs, added a test case.Martin Odersky2011-11-282-0/+11
|
* Reflection toolboxes now respect settings that ...Eugene Burmako2011-11-282-0/+33
| | | | | | | | | | | Reflection toolboxes now respect settings that are provided to them. Before the fix CompilerCommand lacked the (args, settings, errorFn) ctor. I added it and provided means to augment passed settings with custom errorFn. Closes SI-5239. Review by odersky.
* test case for SI-3566vogt2011-11-281-0/+11
| | | | | no review
* Fix for erroneous bytecode generation.Paul Phillips2011-11-283-0/+25
| | | | | | | | | | | | | | | | | | | A remedy for an IllegalAccessError where generated bytecode referred to an inaccessible type. Closes SI-1430. Bonus materials: - tore out all the invokedynamic support. The shipped jdk7 implementation shows limited resemblance to the one this was written against; the code mostly serves to distract. (I think I could get invokedynamic working pretty quickly, except that it would mean having a codebase for java7 and one for 5-6, which is not a yak I wish to shave today.) - gave NullClass and NothingClass objects of their own, which allowed a nice polymorphic simplification of isSubClass, plus a couple other streamlinings.
* updated test cases for Scala Ant tasksmichelou2011-11-2732-121/+402
|
* Annotations reacquainted with reification.Paul Phillips2011-11-261-0/+6
| | | | | | | Had AnnotationInfo extend Product3 since it's no longer a case class. Tried to make reflection a little more robust. Closes SI-5223, review by vogt.
* Reworked AnnotationInfo patch.Paul Phillips2011-11-231-10/+4
| | | | | | | | Took a more ambitious swing based on input from martin. Eliminated the external map and gave annotations a more useful inheritance hierarchy. Eliminated AnnotationInfoBase and made LazyAnnotationInfo an AnnotationInfo (just like LazyType is a Type.) Review by odersky.
* Changed the way use cases are handled in scaladoc.Vlad Ureche2011-11-223-0/+34
| | | | | | | | | | If use cases are present, the original member disappears from the list. References SI-5054, but needs more work on the html part. If use cases are present along with links, scaladoc doesn't crash anymore. Closes SI-4898. Review by kzys.
* Make partest work with spaces in the path (from...Stefan Zeiger2011-11-224-12/+12
| | | | | | | | | | | | | | Make partest work with spaces in the path (from batch script and ant task). - The 'partest' ant task gets a new 'compilerargs' element for scalac - options (like in scalacfork and javac). Fixed argument list handling - in partest task. Further improvements to argument list handling for - all ant tasks. Fixed argument list handling in DirectTest (used by - partest shell scripts) Fixed path handling in several test cases. Closes SI-622. Review by phaller.
* Compiler part of fast orElse.Martin Odersky2011-11-221-0/+2
| | | | | | | "According to the spec this code should not be legal. Disabling for now." Need to come back and either make it work or (more likely) make nsc reject the test)
* Implemented manifest-based class-paths.Paul Phillips2011-11-215-0/+116
| | | | | | | | | | | | | | | | | | | | If you run a jar directly, like scala foo.jar Then if a Class-Path attribute is present in the jar manifest, the classpath will be constructed from that instead of the arguments. Some things remain to be determined, like whether it's supposed to replace a classpath given on the command line or supplement it, and whether the master jar should be on the classpath or only and exactly the jars listed in the manifest. There's a really nice test case, which won't be run of course, but I can't stand going any further without tests for these hard to test on all platforms things. The faux .check file shows what I see. Closes SI-4355, review by harrah.