summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Modified erasure so we have enough information ...Paul Phillips2011-07-187-81/+149
| | | | | | | | | | | | Modified erasure so we have enough information to determine whether we need to use scala or java erasure semantics. This fixes the runtime failure illustrated here: % scala29 -e 'java.util.Collections.max(null)' java.lang.NoSuchMethodError: java.util.Collections.max(Ljava/util/Collection;)Ljava/lang/Comparable; Review by odersky.
* Fixed adriaan's patch for type constructor infe...Paul Phillips2011-07-183-48/+107
| | | | | | | | Fixed adriaan's patch for type constructor inference. The problem with haranguing people in bars about bugs is that the fixes with which they provide you may be flawed. Fortunately moors has this novelist on retainer. Review by moors.
* Small babystep to show Scala -> Java mapping in...Martin Odersky2011-07-181-1/+4
| | | | | Small babystep to show Scala -> Java mapping in reflection.
* Workaround for scalacheck calling System.exit d...Paul Phillips2011-07-182-2/+2
| | | | | | | | | Workaround for scalacheck calling System.exit during testing. Not sure exactly what the sequence of events is here: I found the exit problem months ago and committed code to scalacheck to make that configurable, and then didn't see it again until recently, but I don't think it was ever addressed. This is just a bandaid. No review.
* Brought scalacheck up to date with scalacheck t...Paul Phillips2011-07-1615-90/+198
| | | | | | Brought scalacheck up to date with scalacheck trunk (rev 06612e965d) and rebuilt jar against r25318, no review.
* Re-de-case-classed scala.xml.Text as described ...Paul Phillips2011-07-162-26/+11
| | | | | Re-de-case-classed scala.xml.Text as described in r20450, no review.
* Removed classes and methods deprecated before 2.8.Paul Phillips2011-07-166-80/+3
| | | | | Contributed by Simon Ochsenreither.
* Reverting recent type constructor patch until I...Paul Phillips2011-07-162-55/+30
| | | | | | Reverting recent type constructor patch until I can see why scalacheck is getting blinkered by it. No review.
* Test case for ticket #4582.Paul Phillips2011-07-161-0/+11
| | | | | Contributed by Daniel C. Sobral.
* document scala.util.control.Breaks methodsPaul Phillips2011-07-161-4/+22
| | | | | Authored by Chris League and Roland Kuhn
* collection docs: fix copy-paste errors in GenTr...Paul Phillips2011-07-161-28/+14
| | | | | | | | | | | | | | collection docs: fix copy-paste errors in GenTraversableOnce In r24752, the documentation of reduce, reduceOption, fold, and aggregate were copied verbatim from ParIterableLike to the new GenTraversableOnceLike, and in r24786 they were brought along as GenTraversableOnce replaced GenTraversableOnceLike. Some bits of what they said were appropriate for ParIterableLike but are no longer appropriate here. Contributed by Greg Price.
* Changes to reflection.Martin Odersky2011-07-1615-291/+283
|
* Some post-facto patch cleanups, no review.Paul Phillips2011-07-162-23/+14
|
* Fleshed out scala.math.Ordered documentation.Paul Phillips2011-07-161-17/+64
| | | | | Contributed by josh marcus.
* Basic scaladoc for some scala.math classes.Paul Phillips2011-07-162-2/+65
| | | | | Contributed by desterkin.
* Fix wiki markup of Equiv.scala. From Josh Marcus.Paul Phillips2011-07-161-4/+4
|
* Fix Benchmark documentation to match current ar...Paul Phillips2011-07-161-3/+2
| | | | | | | Fix Benchmark documentation to match current arguments. Contributed by Josh Marcus.
* Basic scaladoc for Vector.Paul Phillips2011-07-161-0/+18
| | | | | | | | This gives a minimal introduction, and sets a number of macros so that inherited documentation is clearer. Contributed by Greg Price.
* Documentation and examples for Regex.Paul Phillips2011-07-161-7/+154
| | | | | Contributed by Daniel C. Sobral
* Added Vector class documentation.Paul Phillips2011-07-161-0/+7
|
* Added documentation for RichInt.Paul Phillips2011-07-161-0/+35
| | | | | Contributed by Marc Weil.
* Make IterableLike.toIterator more efficientPaul Phillips2011-07-161-0/+2
| | | | | | | Override TraversableLike.toIterator which uses unnecessary toStream. Fixes SI-4802. Contributed by Yang Zhang.
* Fixed a big bug in type constructor unification...Paul Phillips2011-07-162-30/+55
| | | | | | | | | | | | | Fixed a big bug in type constructor unification caused by considering only the parents rather than all the base types. This fix is a testament to the power of haranguing people in bars when you are deeply offended by a bug, like someone was by this one: def f[CC[X] <: Traversable[X]](x: CC[Int]) = () f(1 to 5) // did not compile! Fear not, it does now Review by moors.
* A whole bunch of documentation on Trees, arrest...Paul Phillips2011-07-162-47/+133
| | | | | | A whole bunch of documentation on Trees, arrested in progress. (Eventually should be reviewed but not yet so) no review.
* Beginning to document scala.util.continuations ...Paul Phillips2011-07-151-2/+62
| | | | | | | Beginning to document scala.util.continuations with a use case. Authored by Chris League and Roland Kuhn.
* Add documentation to Boolean.Paul Phillips2011-07-151-1/+76
|
* Merge pull request #42 from jamie-allen/masterPaul Phillips2011-07-151-1/+3
| | | | | DocSpree
* Additional documentation for the Array type, wi...Paul Phillips2011-07-151-1/+31
| | | | | | | | Additional documentation for the Array type, with short code examples of construction, access and update. Also links to ArrayOps and WrappedArray in order to explain where the additional collections operations come from. Contributed by iainmcgin@gmail.com.
* Some minor scaladoc tweaks and deletion of inco...Paul Phillips2011-07-154-51/+69
| | | | | | Some minor scaladoc tweaks and deletion of incorrect scaladoc docs, no review.
* scaladoc fixes and improvementsmichelou2011-07-1525-189/+577
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes to scaladoc include: - fixed transformation of Code(text) into HTML tag <code> - added tool tips for deprecated entities (classes, methods) using the 'title' attribute - added syntax highlighting of Scala source code in generated <pre> blocks (CSS colors are defined in lib/template.css) Here are several examples of highlighted Scala code: scala.App scala.Application scala.Enumeration scala.Function1 scala.Function2 scala.native scala.Option scala.Proxy scala.specialized scala.throws scala.unchecked scala.actors.Actor scala.annotation.deprecatedName scala.annotation.elidable scala.annotation.switch scala.collection.DefaultMap scala.collection.JavaConversions scala.collection.JavaConverters scala.collection.LinearSeqLike scala.collection.MapLike scala.collection.SetLike scala.collection.TraversableLike scala.collection.immutable.NumericRange scala.collection.immutable.Range scala.collection.immutable.Stream scala.collection.mutable.BufferLike scala.concurrent.pilib scala.io.Position scala.reflect.BeanProperty scala.reflect.Manifest scala.testing.Benchmark scala.util.DynamicVariable scala.util.control.Breaks scala.util.control.ControlThrowable scala.util.control.Exception scala.util.control.TailCalls scala.util.logging.Logged scala.util.parsing.combinator.testing.Tester scala.util.parsing.json.JSON scala.util.regexp.WordExp scala.xml.factory.LoggedNodeFactory scala.xml.parsing.ConstructingParser
* 3rd round of clean ups (see r25285, r25292)michelou2011-07-1573-769/+592
|
* 2nd round of clean ups (see r25285)michelou2011-07-1599-1515/+1519
|
* Added the new packages to MANIFEST.MF to enable...Iulian Dragos2011-07-151-0/+3
| | | | | Added the new packages to MANIFEST.MF to enable plugin builds and tests.
* Adding some Sets/Maps to perRunCaches, and elim...Paul Phillips2011-07-1488-868/+288
| | | | | | | | | | | | | | | | | | | | | | | | | | Adding some Sets/Maps to perRunCaches, and eliminating ambiguously named imports. Did a tour of the compiler adding a few longer-lived mutable structures to the per-run cache clearing mechanism. Some of these were not a big threat, but there is (almost) literally no cost to tracking them and the fewer mutable structures which are created "lone wolf style" the easier it is to spot the one playing by his own rules. While I was at it I followed through on long held ambition to eliminate the importing of highly ambiguous names like "Map" and "HashSet" from the mutable and immutable packages. I didn't quite manage elimination but it's pretty close. Something potentially as pernicious which I didn't do much about is this import: import scala.collection._ Imagine coming across that one on lines 407 and 474 of a 1271 file. That's not cool. Some poor future programmer will be on line 1100 and use "Map[A, B]" in some function and only after the product has shipped will it be discovered that the signature is wrong and the rocket will now be crashing into the mountainside straightaway. No review.
* cleanups (scaladoc 2, deprecation warnings, tra...michelou2011-07-1332-409/+414
| | | | | cleanups (scaladoc 2, deprecation warnings, trailing blanks)
* Fix printing of Char constants.Grzegorz Kossakowski2011-07-131-1/+1
| | | | | | | | Fixed bug in printing of Char Constants logic used by Tree printers. Fixes #4792. No review.
* Get rid of structural type in Iterator.scalaGrzegorz Kossakowski2011-07-131-1/+9
| | | | | | | | Implementation of Iterator.scala defined a structural type by mistake. By naming a class we get rid of that structural type. Fixes #4791. No review.
* prohibit case-to-case inheritance instead of is...Hubert Plociniczak2011-07-138-34/+15
| | | | | | | prohibit case-to-case inheritance instead of issuing warning. closes #4109. review by extempore, since it should make your life much easier in the pattern matcher
* Don't enter into same line infinite recursion w...Paul Phillips2011-07-133-2/+17
| | | | | | Don't enter into same line infinite recursion when erroneous code involves a self-normalizing type alias. Closes #3240, review by moors.
* Test case closes #3371, no review.Paul Phillips2011-07-131-0/+9
|
* Test case closes #1432, no review.Paul Phillips2011-07-132-0/+18
|
* Restored partest behavior of keeping output dir...Paul Phillips2011-07-131-1/+4
| | | | | | Restored partest behavior of keeping output directories when run with debugging enabled. No review.
* Bounded wildcard types arising during pattern t...Paul Phillips2011-07-135-3/+55
| | | | | | Bounded wildcard types arising during pattern type inference can cause unnecessary crashes. Closes #1048, review by odersky.
* Catch type projections even when they disguise ...Paul Phillips2011-07-133-3/+26
| | | | | | Catch type projections even when they disguise themselves as stable via singleton bounds. Closes #1431, review by odersky.
* A response to adriaan's last lub commit of the ...Paul Phillips2011-07-132-39/+129
| | | | | | | | A response to adriaan's last lub commit of the housekeeping and pretty printing variety. Non-invasive surgery, don't worry martin. Simplified the input to lublist a bit. Includes illustrative test case for current brand of lub failures. Review by moors.
* Suppressed an error in type constructor bounds ...Paul Phillips2011-07-133-4/+16
| | | | | | Suppressed an error in type constructor bounds checking which was obscuring the meaningful error to follow. Review by moors.
* Making power mode startup a little less glacial...Paul Phillips2011-07-123-39/+20
| | | | | Making power mode startup a little less glacial, no review.
* A bunch of repl stuff.Paul Phillips2011-07-126-86/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | type mismatches, for real this time. :power mode goes to phase typer automatically. You can get the symbols for repl-defined names more directly: scala> case class Bippy(x: Int) defined class Bippy scala> intp.terms("Bippy") res1: intp.global.Symbol = object Bippy scala> intp.types("Bippy") res2: intp.global.Symbol = class Bippy scala> intp("Bippy") // tries type first res3: intp.global.Symbol = class Bippy scala> intp("scala.collection.Map") // falls back to fully qualified res4: intp.global.Symbol = trait Map I changed the implicit which used to install "tpe" and "symbol" to install "tpe_" and "symbol_" because it was too easy to do something you didn't mean to, like calling x.tpe where x is a Manifest. Said implicit now handles manifest type arguments, so you can get the full translation from a manifest representation to a compiler type, at least for simple types and only as much as manifests work, which is not that much. Fortunately that situation is all changing soon. scala> List(List(1, 2, 3)).tpe_ res5: power.Type = List[List[Int]] scala> res5.typeArgs res6: List[power.global.Type] = List(List[Int]) Review by moors.
* Fixed some unnecessary chattiness and poor func...Paul Phillips2011-07-121-4/+8
| | | | | | Fixed some unnecessary chattiness and poor function naming in tree checkers, no review.
* Seeing about getting trunk building again, no r...michelou2011-07-124-80/+81
| | | | | Seeing about getting trunk building again, no review.