Commit Graph

11733 Commits

Author SHA1 Message Date
phaller 8e242b4b0e Closes #3185. Review by plocinic.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21205 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-17 11:07:50 +00:00
rompf 60cd26417f closes #3112. no review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21201 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-16 23:06:10 +00:00
rompf a64ce43f1b added test case for #2417. no review
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21200 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-16 21:53:07 +00:00
odersky 741f416ed5 Fixed build problem by eliminiating a redundant implicit in scalap. Review by extempore.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21199 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-16 21:07:16 +00:00
odersky 431b85ffec Closes #2688 by disallowing call-by-name implicit parameters. No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21196 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-16 16:22:44 +00:00
odersky 79b204f524 new tests
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21195 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-16 16:12:46 +00:00
odersky 21f27c74bb Closes #2913. Review by rytz. (The error was that too few/too many argument errors had a position
different from the other errors, so no second try was done for them.)

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21193 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-16 15:26:33 +00:00
odersky d95a835c8a Fixes nitpicks by Adriaan in his review. No review necessary.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21190 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-16 14:42:09 +00:00
odersky a1c346a736 Closes #3180. No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21189 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-16 14:40:43 +00:00
prokopec f36d3eea61 Fixes infinite streams in #3091. No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21188 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-16 14:23:13 +00:00
prokopec 0f1a5978db Fixes #3091. Review by community.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21187 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-16 13:10:45 +00:00
prokopec f67520252f Changed `!=` to `ne` for #3086. No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21186 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-16 09:59:37 +00:00
rompf 1ce741928a added support for continuations in try/catch blocks. review by community.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21184 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-16 08:19:59 +00:00
extempore cf4cef519f Tracked down docs.lib build issue from the dentist's chair while
waiting for my teeth to numb.  Checking in over open wireless access
point.  This is dedication.  No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21181 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-15 17:08:16 +00:00
rompf 7494d6d62c fixed treatment of annotated types in isNumericSubType. re-enabled test case. review by odersky
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21180 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-15 15:48:28 +00:00
prokopec 45b1d5ccdf Fixes #3091. Review by community.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21179 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-15 14:45:33 +00:00
rytz 1e2f71e25c minor cleanup to build.xml. review by rompf
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21178 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-15 13:54:23 +00:00
rompf f30660a185 new immutable.HashSet. review by community.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21177 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-15 13:44:53 +00:00
prokopec 87f9a29735 Fixes #3086. Review by community.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21176 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-15 12:44:32 +00:00
prokopec 9fd90b30ac Fixes #3132. No review necessary.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21175 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-15 11:03:03 +00:00
prokopec 04b6bef15d Fixes #3155. No review is necessary.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21174 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-15 10:44:27 +00:00
rytz 773b75ca65 Fix for msil compiler. Unlike java.lang.Class, System.Type does not take a type parameter. Related to r21135. review by odersky.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21171 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-15 10:25:34 +00:00
extempore 436cb751bf Reverting a couple replacements from that last patch which don't
look so safe on re-examination.  No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21168 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-15 05:19:53 +00:00
extempore 6de14d83b6 Leveraged -Xmigration to burn off some warts which arose in the
new collections.  Warnings put in place for behavioral changes,
allowing the following.  1) Buffers: create new collections on
++ and -- like all the other collections.  2) Maps: eliminated
never-shipped redundant method valuesIterable and supplied these
return types:

  def keys: Iterable[A]
  def keysIterator: Iterator[A]
  def values: Iterable[B]
  def valuesIterator: Iterator[B]
  def keySet: Set[A]

I concluded that keys should return Iterable because keySet
also exists on Map, and is not solely in the province of Maps
even if we wanted to change it: it's defined on Sorted and
also appears in some Sets.  So it seems sensible to have keySet
return a Set and keys return the more general type.

Closes #3089, #3145.  Review by odersky.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21167 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-15 04:45:47 +00:00
rompf 70c414ef77 improved immutable HashMap iterator. review by community.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21165 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-14 17:39:56 +00:00
extempore 6af100b387 Tighten update check in cleanup. Closes #3175. No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21164 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-14 07:25:15 +00:00
extempore b5461fff0e Test case for #2940. No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21163 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-14 06:58:02 +00:00
extempore 1b13533d00 Test case closes #751. No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21162 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-14 06:57:36 +00:00
odersky 09002162ac Closes #2918. Review by moors.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21160 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-13 20:21:13 +00:00
extempore 9058add5a0 More support code for the big partest patch I'm working on to
finally finish classpaths for good.  No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21159 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-13 19:24:43 +00:00
odersky 7eb1d37efb Improved version where bumping and zero-encoding are rolled into one.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21158 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-13 17:34:13 +00:00
odersky 9d7dce45e7 Closes #3120. Review by extempore.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21157 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-13 17:33:33 +00:00
odersky 827c6f7c8f Disabled failing test
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21156 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-13 17:32:19 +00:00
odersky 5e3452f316 Added an object to mangle byte arrays into Java classfile's version of UTF8.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21151 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-12 18:39:40 +00:00
odersky 5cd261d832 Closes #3143. Review by moors.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21150 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-12 15:38:33 +00:00
plocinic c0154c0235 do not set the type of the implementation method to be the type of the original one as this is done properly in cloneSymbol. no review (already done by Martin)
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21149 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-12 15:21:25 +00:00
Joshua.Suereth edeb465b99 Added continuations to maven deployment. review by rompf
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21148 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-12 13:34:05 +00:00
rompf e03ac2c949 added missing file from last commit. no review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21142 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-11 20:36:43 +00:00
odersky 0a8b0af0a2 Partially reverted r21018. Closes #3153. No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21141 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-11 17:11:24 +00:00
rompf 8506a865b8 moved the continuations plugin into trunk. it is now part of the distributions under /plugins/continuations.jar which should make scalac load it by default. actual use however must be enabled by passing -P:continuations:enable as command line arg. supporting library code is in package scala.util.continuations and is compiled into scala-library.jar. review by rytz, cunei, odersky.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21140 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-11 16:55:38 +00:00
odersky 4aa5526277 Closes #3158. No review necessary.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21139 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-11 16:53:54 +00:00
rompf 90ef89ca9b implemented handling of 32-bit collisions in immutable.HashMap. review by community.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21138 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-11 16:44:06 +00:00
odersky 7c55c47ed8 Closes #3157 by overriding +: in List. Review by rompf
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21137 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-11 16:34:44 +00:00
odersky ec80a19a46 Fixed doc comment. No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21136 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-11 14:22:29 +00:00
odersky 237dc1b1a1 Closes #2940. Review by extempore. My original idea to replace existrentialAbstraction by existentialType in ClassfileParsers was correct after all. However this change triggered another landmine in Definitions, where ClassType queried unsafeTypeParams. I think that was only needed for the migration to Java generics in 2.7, so it can safely go away now. Because the change in classfile parsers forces less of a type, unsafeTtpeParams returned the wrong result, which caused the build to fail. The modifications in Erasure and Implicits were attempts to isolate the problem before. They seem to be unnecessary to make the build go through, but are cleaner than the previous versions they replace.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21135 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-11 14:21:21 +00:00
extempore a79563c672 Some IO conveniences. No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21131 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-11 06:00:37 +00:00
extempore b72d6d0b56 Small syntactic adjustment so that last patch from adriaan
will build.  (Big thumsb up to the aesthetics though.) No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21130 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-10 19:18:43 +00:00
moors f31e8128e2 slight (syntactic) cleanup of patch for see #3152 -- sorry, only realised when looking over my patch again
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21129 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-10 17:50:15 +00:00
moors 84c3dd7ab9 closes #3152: refactored adjustTypeArgs and methTypeArgs so that tparams are correctly split into ones that were inferred successfully, and that thus have a corresponding type argument, and those that weren't determined
I didn't investigate the exact cause of the final error message in the bug report, but Jason Zaugg's observations seems correct and I never liked that uninstantiated buffer in the first place.

review by odersky

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21128 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-10 17:43:20 +00:00
dubochet 1ed74541bc FatalError needs a stack trace. No review (was discussed at Scala meeting).
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21127 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-10 16:32:10 +00:00