Commit Graph

11733 Commits

Author SHA1 Message Date
extempore 93a4505884 ...and a line from partest I didn't notice the absence of which
would break the build.  No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21126 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-10 16:30:51 +00:00
extempore 6fe9c8d3a0 Some minor compiler support bits for my upcoming partest patch.
No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21125 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-10 16:21:56 +00:00
extempore 0be7626fad Removed a couple infinite loops in XML. No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21124 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-10 15:57:10 +00:00
extempore cdba29c6f3 Some windows oriented fixes for build.xml. No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21123 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-10 15:33:14 +00:00
phaller 7678303e15 New attempt at fixing the tests. No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21121 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-09 14:03:02 +00:00
phaller 5734dfb80b Made actor-getstate test more robust. No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21115 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-09 10:35:13 +00:00
extempore 438f20c70a Temporarily disabling failing test until I can finish my partest
work.  No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21113 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-09 00:46:20 +00:00
extempore cf1ad6b61d Added test.debug target to build.xml. This will run whatever
tests you have placed in the test/debug directories - critically
for those of us stuck debugging ant, this lets one run a small
selection of tests by way of ant instead of the console runner.

(Sorry about the empty .gitignore files, but one of git's quirks
is that it won't acknowledge the existence of an empty directory.)
No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21111 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-08 19:58:10 +00:00
extempore a3c5bbc3e9 Fixed failing test t3115 via judicious application of
-Yfatal-warnings.  No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21110 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-08 18:57:01 +00:00
extempore 87ea1aa955 Changed partest ant task not to use reflection, instead using
the path with which scala was invoked.  No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21109 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-08 18:46:35 +00:00
phaller 573701e870 Closes #3102.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21108 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-08 18:17:50 +00:00
odersky 89ff598e01 Refined fix for #2946. Review by extempore.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21107 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-08 18:12:11 +00:00
phaller 6f8e26e780 Reactor now has type parameter. Added Reactor.getState. Made Reactor.start idempotent. Moved Actor.reactWithin to ReplyReactor. Renamed Replyable to CanReply.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21106 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-08 15:01:53 +00:00
moors 31c3229d3a closes #2994
make normalize slightly more aggressive in loading symbol info, while tolerating the righteous cycle (use sym.info.typeParameters instead of unsafeParams)
this is needed to make sure higher-kinded types have their type parameters (otherwise we'd get a PolyType with NoSymbol for typeParams)

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21105 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-08 14:27:48 +00:00
odersky 5f5a61a153 new tests
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21103 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-08 13:46:13 +00:00
odersky 94611c663e Avoids two unchecked warnings. Review by extempore.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21102 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-08 13:45:36 +00:00
odersky 2110cbdca6 Closes #3006. Review by milessabin because this could be a good basis for shwoing implicits in the IDE.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21101 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-08 13:43:12 +00:00
odersky 83ae774684 Closes #3115. Reviw by rytz
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21100 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-08 13:40:32 +00:00
odersky eeeb771f0c Closes #3026. Review by extempore.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21099 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-08 13:34:57 +00:00
dragos 2c7991513c Recursively transform 'new' arguments in specialized programs. Closes #3149, no review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21098 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-08 13:14:59 +00:00
milessabin 01727305f4 Unbreak the IDE build following [21086]. No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21094 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-08 10:20:05 +00:00
extempore 5201299da3 Created directory for code which is most likely dead but we want
to keep around a while in case someone else is using it.  It's called
src/attic and now it holds four files.  Motivations: such files
cloud my attempts to figure out what code in the compiler is really
being used, they require effort to maintain across changes, and they
slow down every build a fraction.  Revew by community.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21093 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-08 06:24:23 +00:00
extempore c8e30b1974 More progress toward immutable Settings, and various cleanups
encountered along the way.  No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21092 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-08 06:06:36 +00:00
rompf 2a64274416 - new immutable HashMap implementation based on a hash trie. this is the first iteration, more optimizations will be added later.
- updated test cases to reflect new ordering of elements
- made Map.empty and Set.empty singletons, deprecating classes Map.EmptyMap and Set.EmptySet
Review by extempore, odersky.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21091 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-07 20:52:45 +00:00
extempore 4c10824861 Removed unnecessary DebugSetting, folding the small extra
functionality back into ChoiceSetting.  No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21088 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-07 18:53:07 +00:00
extempore f9b3bf3ee8 Still working my way through all the classpath manipulations
in partest.  No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21087 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-07 06:02:38 +00:00
extempore 2d3f9fb4a6 One minute too many trying to figure out where some partest
classpath mutation was disappearing on me, and I snapped and
started the process of creating an immutable Settings.  This
commit is for the most part infrastructure to enable its smooth
and uneventful entrance.  Review by community.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21086 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-07 05:24:00 +00:00
extempore fb60be2e9a Modification to the last patch to return None/false rather than
throwing the MatchError.  No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21085 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-06 13:45:23 +00:00
extempore 6778b54099 Fixes for #3126. Case class unapply methods now guard against
null, and thrown MatchErrors don't NPE trying to stringify null.
No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21084 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-06 13:26:30 +00:00
dcaoyuan 13715ab21d escape source file path with space chars
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21083 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-06 04:54:15 +00:00
extempore 58eaa27694 Fix for #3136 by reverting the line in r18184 which caused this and
other regressions.  The downside is that the #1697 test case no longer
passes, but protracted shrug because it wasn't entirely fixed anyway.
Review by moors.  (Can you triangulate your way to a patch where both
work simultaneously? It's today's bonus challenge!)

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21081 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-05 21:06:58 +00:00
extempore e74625cdb8 Test case for case class equality. Closes #1332. No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21080 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-05 20:14:13 +00:00
extempore 17e08e09c6 ScalaRunTime method to perform sameElements as fix for #2867.
Review by odersky.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21079 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-05 19:19:17 +00:00
extempore df0cddc889 Cleaning up some redundancy martin noticed. No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21078 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-05 18:17:26 +00:00
odersky 94522cc659 Closes #3015. Review by moors (it's his patch).
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21077 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-05 15:58:27 +00:00
odersky ea78c6a6eb Mixing test case. No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21076 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-05 15:32:24 +00:00
odersky e647b9b99f Closes #3026. Review by extempore.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21075 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-05 15:32:03 +00:00
odersky 07d5f89364 Closes #3037. Review by extempore.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21074 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-05 15:31:40 +00:00
extempore 7c41b88373 Removed quotes from quoted tokens in command line parser to
soothe Windows.  Review by community.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21073 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-05 14:30:44 +00:00
extempore c3a8aa1727 Added -Xmigration option and @migration annotation. At present
it will warn about the following changes from 2.7 to 2.8:

  Stack iterator order reversed
  mutable.Set.map returns a Set and thus discards duplicates
  A case 'x @ Pattern' matches differently than 'Pattern'

Review by odersky.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21071 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-05 06:01:19 +00:00
extempore 9918c65cd8 Making sure the interpreter always uses the designated output
stream rather than unwittingly falling back on predef.  No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21068 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-04 21:06:08 +00:00
extempore bf28cafac2 Renamed the linkedFooOfBar methods in Symbol to be internally
consistent and in line with modern nomenclature.  No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21067 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-04 20:18:41 +00:00
extempore 111359b28c Added a comment to Symbols after one too many times forgetting
what I was in that file for while I traced which of the linked*
functions I wanted.  Review by odersky (only because there's also
a renaming proposal in there for which I solicit your yea or nay.)

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21066 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-04 18:05:39 +00:00
phaller dff53b5a49 Removed obsolete SimpleExecutorScheduler, ThreadPoolScheduler, DefaultThreadPoolScheduler, and SchedulerService. Made ThreadPoolConfig private. No review necessary.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21065 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-04 15:05:47 +00:00
odersky 3c2a34e8c7 Closes #3118. review by extempore
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21064 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-04 14:06:18 +00:00
phaller 5734a17735 Fixed actors.enableForkJoin property. Fixed build. Review by extempore.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21063 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-04 13:28:12 +00:00
rompf 1e4727b54a fixed while loop performance. label def rhs re-check only done if first typing produces a different type than the initially assumed one (which is alsways Unit, so the recheck only happens if some AnnotationChecker says the type is not Unit but Unit @something).
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21062 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-04 13:17:39 +00:00
phaller 139d6f686b Clean-ups in scheduler hierarchy. Restricted visibility of several traits. Added tests exercising cleaned-up interface.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21060 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-04 11:40:16 +00:00
extempore 082334e7c1 Obeyed source comment to make some classes private, since the
problem described seems to be gone.  No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21059 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-04 05:23:21 +00:00
extempore ef91cbc15b A few yards short of the goal posts attempt at making our usage of
Throwable subclasses more consistent.  This patch eliminates a lot
of ad hoc Exception/Error/etc. creation and various arbitrary choices
are rendered slightly less arbitrary.  From now on let's try not
to use the word "Exception" or "Error" in the names of Throwable
subclasses unless they actually derive (and make sense to derive)
from Exception or Error.  Review by community.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21058 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-03-04 05:22:57 +00:00