Commit Graph

10304 Commits

Author SHA1 Message Date
milessabin 1a9c09df63 Whitespace.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18397 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-28 10:55:23 +00:00
phaller 386c948f89 Fixed #2183.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18396 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-28 10:01:46 +00:00
phaller 3b3cf9028c Reintegrated `ImmutableMapAdaptor` and `ImmutableSetAdaptor`.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18395 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-28 09:57:42 +00:00
phaller cd3ec39f10 Fixed spec-List test.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18394 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-28 09:41:55 +00:00
milessabin 1432ceb969 Fix for another positions issue; added some positions unit tests; added test.positions target to build.xml which validates positions of all sources in the Scala tree; cleaned up -Yide-debug output for use in the previous item.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18391 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-27 18:36:37 +00:00
extempore 1cd924fc28 Changed toSet to return immutable.Set, addresses #2200.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18389 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-26 21:21:12 +00:00
odersky cd1c198996 nested pacpakges for actor.wscheduler; fixed build problems
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18388 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-24 18:26:08 +00:00
odersky cf77d83abc switch to unnested packages.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18387 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-24 15:28:37 +00:00
rytz 4559021e8f another attempt at fixing annotations printout
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18385 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-24 14:19:00 +00:00
rytz 49e633e7e2 fixed a bug with defaults reported on mailing list
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18384 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-24 07:26:27 +00:00
milessabin bd25b74978 Fixes for various invalid positions; ensure that target class infos are suitably initialized.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18383 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-23 19:26:01 +00:00
phaller e18d70100c Commented brace patch output from parser.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18381 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-23 08:33:09 +00:00
milessabin 339c239cd2 Fixes for various invalid positions.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18380 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-23 03:11:28 +00:00
extempore 17886f4d1f Fix for #2187.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18379 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-23 00:31:07 +00:00
extempore a4b6a791ec Fix and test cases for #2184.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18378 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-22 20:04:13 +00:00
phaller 16031f90ea Proposed fix to address #2165.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18377 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-22 17:08:35 +00:00
phaller 0b6b278a83 Fixed #2176.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18376 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-22 15:40:31 +00:00
ilyas 37143c3612 module settings changed
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18372 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-21 19:18:19 +00:00
phaller 974825d678 Enabled synchronous message sends for ReplyableReactor. Added get(timeout: Long) method to SyncVar.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18371 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-21 17:35:01 +00:00
phaller 7ef93d1af8 Made Replyable more general. Added AbstractReactor trait.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18369 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-21 16:20:16 +00:00
phaller f7d84ca7c7 Enabled future-type message sends for reactors.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18366 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-21 12:21:56 +00:00
phaller ac6c7c9416 Fixed build.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18364 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-21 10:25:13 +00:00
phaller 3ca7a5cbe9 Added test for scala.actors.ReplyReactor.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18363 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-21 09:49:46 +00:00
phaller 846e3c400d Moved scheduler source files into new scheduler directory.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18362 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-21 09:31:39 +00:00
phaller 7205767154 Added regression test for #2147.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18361 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-21 09:12:51 +00:00
phaller 50cfff2435 Moved new scheduler classes into package scala.actors.scheduler.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18360 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-21 09:12:13 +00:00
phaller ad7a52169b Renamed outputchannelactor test to reactor.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18359 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-21 08:31:11 +00:00
phaller 0513125e51 Made daemon-actor-termination test deterministic.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18358 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-21 08:25:35 +00:00
rytz daab43dfc2 fixed TreePrinter for annotations
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18357 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-21 08:23:10 +00:00
extempore 4641e1ac3b The creation of scala.collection.mutable.Iterable in 2.8 means
that all the other classes in scala.collection.mutable are
impacted - what they once thought was scala.Iterable is now
mutable Iterable.  This meant such things as Stack ++= List(1,2,3)
would no longer compile.  This patch qualifies the relevant
Iterables as collection.Iterables, though based on inspecting
other classes, it's likely they should actually be Traversables.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18353 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-20 22:35:38 +00:00
extempore c947e72cb6 Fix and test case for #2168.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18352 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-20 21:38:13 +00:00
phaller 7476e8ee7d Re-enabled snapshot for new ForkJoinPool. Added pool resizing for ThreadPoolScheduler. Removed some code duplication. Removed unused Phaser class.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18350 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-20 15:28:34 +00:00
moors c66fc5f0da fixed #2163
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18347 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-19 13:02:37 +00:00
extempore 0cd70be166 Test case for bug #1466, which was mysteriously fixed
at some point in the last nine months.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18346 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-18 21:32:20 +00:00
extempore a697ce92b6 Added test case for #1764 to the test case for #1878
(as #1764 was fixed along with it in r18343.)

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18345 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-18 18:10:30 +00:00
extempore 21ae844972 Fix and test case for #1373.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18344 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-18 17:34:33 +00:00
extempore 6571bdad12 Fix and post/neg test cases for #1878.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18343 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-18 15:19:55 +00:00
extempore 62082dca26 Removed some identical code from the collections classes in hopes
of finding some consistency in collections equality.  Added more
test cases to the sequenceComparisons test.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18342 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-18 13:20:09 +00:00
extempore 9097cf190f Removed Vector's indexOfSeq method in favor of the superclass
implementation, which already discriminates based on hasDefiniteSize.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18341 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-17 19:07:55 +00:00
extempore d2302618dc sync
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18340 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-17 19:07:39 +00:00
ilyas dd4ca05d1e idea project files changed
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18339 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-17 18:33:56 +00:00
extempore d3e0dc958f Now that there's a KMP implementation in Seq, removed the
Char-specific one from StringBuilder.  Added lastIndexOfSeq
method to SequenceTemplate - for StringBuilder primarily,
but available to be enjoyed by all the world's sequences.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18338 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-17 16:55:28 +00:00
phaller d9cc7b18b3 Fixed build.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18337 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-17 16:42:47 +00:00
phaller 84f3032a5e Updated to newest revision of ForkJoinPool.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18336 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-17 16:30:42 +00:00
extempore e51b48310b Fix for failing test t1323.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18335 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-17 16:00:36 +00:00
extempore 73896291e9 A start on a more comprehensive test suite for sequences.
It performs 3600 different tests attempting to exercise
the potentially buggy variations of startsWith, endsWith,
indexOfSeq, and sameElements.

And, a KMP implementation of indexOfSeq which in addition
to being a lot faster for definite sized sequences, should
give the wrong answer somewhat less frequently.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18334 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-17 15:04:53 +00:00
extempore 60d0f4d10d scala> Vector(1,2,3) startsWith List("I am a Sumerian shapeshifting destruction god.")
res0: Boolean = true
...is fixed.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18333 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-16 21:24:30 +00:00
extempore 282a6b4b2d scala> immutable.Vector(1,2,3) endsWith immutable.Vector(2,3)
res0: Boolean = false
...is fixed.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18332 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-16 21:10:22 +00:00
extempore 96d2a5cd5a scala> List(1,2,3) endsWith List(2, "I AM GOZER THE DESTROYER")
res0: Boolean = true
... is fixed.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18331 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-16 20:31:24 +00:00
extempore d11f1fed92 Fixed the same bug as in r18328, but in equals.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18330 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-07-16 20:18:44 +00:00