Permalink
Switch branches/tags
Nothing to show
Commits on Jul 15, 2011
  1. 2nd round of clean ups (see r25285)

    michelou
    michelou committed Jul 15, 2011
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25292 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  2. Added the new packages to MANIFEST.MF to enable plugin builds and tests.

    dragos
    dragos committed Jul 15, 2011
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25287 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
Commits on Jul 14, 2011
  1. Adding some Sets/Maps to perRunCaches, and eliminating ambiguously na…

    extempore
    extempore committed Jul 14, 2011
    …med 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.
    
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25286 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
Commits on Jul 13, 2011
  1. cleanups (scaladoc 2, deprecation warnings, trailing blanks)

    michelou
    michelou committed Jul 13, 2011
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25285 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  2. Fix printing of Char constants.

    grek
    grek committed Jul 13, 2011
    Fixed bug in printing of Char Constants logic
    used by Tree printers.
    
    Fixes #4792. No review.
    
    
    
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25284 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  3. Get rid of structural type in Iterator.scala

    grek
    grek committed Jul 13, 2011
    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.
    
    
    
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25283 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  4. prohibit case-to-case inheritance instead of issuing warning. closes …

    plocinic
    plocinic committed Jul 13, 2011
    …#4109. review by extempore, since it should make your life much easier in the pattern matcher
    
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25282 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  5. Don't enter into same line infinite recursion when erroneous

    extempore
    extempore committed Jul 13, 2011
    code involves a self-normalizing type alias.  Closes #3240, review by moors.
    
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25281 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  6. Test case closes #3371, no review.

    extempore
    extempore committed Jul 13, 2011
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25280 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  7. Test case closes #1432, no review.

    extempore
    extempore committed Jul 13, 2011
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25279 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  8. Restored partest behavior of keeping output directories when run

    extempore
    extempore committed Jul 13, 2011
    with debugging enabled.  No review.
    
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25278 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  9. Bounded wildcard types arising during pattern type inference can

    extempore
    extempore committed Jul 13, 2011
    cause unnecessary crashes.  Closes #1048, review by odersky.
    
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25277 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  10. Catch type projections even when they disguise themselves as

    extempore
    extempore committed Jul 13, 2011
    stable via singleton bounds.  Closes #1431, review by odersky.
    
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25276 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  11. A response to adriaan's last lub commit of the housekeeping and

    extempore
    extempore committed Jul 13, 2011
    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.
    
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25275 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  12. Suppressed an error in type constructor bounds checking which

    extempore
    extempore committed Jul 13, 2011
    was obscuring the meaningful error to follow.  Review by moors.
    
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25274 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
Commits on Jul 12, 2011
  1. Making power mode startup a little less glacial, no review.

    extempore
    extempore committed Jul 12, 2011
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25273 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  2. A bunch of repl stuff. Smoothed out issues with singleton

    extempore
    extempore committed Jul 12, 2011
    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.
    
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25272 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  3. Fixed some unnecessary chattiness and poor function naming in tree

    extempore
    extempore committed Jul 12, 2011
    checkers, no review.
    
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25271 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  4. Seeing about getting trunk building again, no review.

    michelou
    michelou committed Jul 12, 2011
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25270 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  5. More work done on implementing reflection. But still very mich in pro…

    odersky
    odersky committed Jul 12, 2011
    …gress.
    
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25269 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
Commits on Jul 11, 2011
  1. Seeing about getting trunk building again, no review.

    extempore
    extempore committed Jul 11, 2011
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25268 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  2. Misc smoothing of tree creation, no review.

    extempore
    extempore committed Jul 11, 2011
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25267 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  3. Implemented workaround for SI-4789, no review.

    extempore
    extempore committed Jul 11, 2011
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25266 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  4. Minor, mostly agreed upon changes to reflection api, review by odersky.

    extempore
    extempore committed Jul 11, 2011
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25265 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  5. Baby-steps towards getting actual runtime reflection. Made runtime.Un…

    odersky
    odersky committed Jul 11, 2011
    …iverse not crash when initializing.
    
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25264 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  6. Fixes #4398.

    prokopec
    prokopec committed Jul 11, 2011
    Review by extempore.
    
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25263 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  7. Fixes #4326.

    prokopec
    prokopec committed Jul 11, 2011
    No review.
    
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25262 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  8. Fixes #4709.

    prokopec
    prokopec committed Jul 11, 2011
    Review by extempore.
    
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25261 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  9. Fixes #4723.

    prokopec
    prokopec committed Jul 11, 2011
    Review by extempore.
    
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25260 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  10. Making empty streams serializable.

    prokopec
    prokopec committed Jul 11, 2011
    No review.
    
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25259 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  11. Fixes #4761.

    prokopec
    prokopec committed Jul 11, 2011
    This changes the signature of flatten - I do not see how to use a @bridge annotation here, since after erasure both the bridge and the original method have the same signature.
    
    Review by extempore.
    
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25258 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  12. Refactored reflection into reflect.api and reflect.internal. Severed …

    odersky
    odersky committed Jul 11, 2011
    …the last remaining dependency on reflect.generic. Review by extempore.
    
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25257 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
Commits on Jul 9, 2011
  1. Moved a warning behind -Xlint. Threw in a partest fix: I always

    extempore
    extempore committed Jul 9, 2011
    meant for --grep to look in checkfiles too, and now it does.  No review.
    
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25256 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  2. Fixes some remaining formatting issues. Related to #4490. Contributed…

    kzys
    kzys committed Jul 9, 2011
    … by Simon Ochsenreither. Review by ureche.
    
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25255 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  3. Fix for failing test, review by extempore.

    kzys
    kzys committed Jul 9, 2011
    git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25254 5e8d7ff9-d8ef-0310-90f0-a4852d11357a