extempore
7c625135ca
Some cleanups in inline exception handlers. Review by ureche.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25539 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-22 15:18:50 +00:00
extempore
6d31a5bd62
Bug in optimizer eliminated potentially exceptional not-dead code.
...
Streamlined isSideEffecting logic. Review by ureche.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25538 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-21 16:05:06 +00:00
extempore
970bf06b85
Set the partest encoding to UTF-8. Review by heathermiller.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25537 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-21 13:46:08 +00:00
heathermiller
f91f471533
Improved documentation for scala.collection.immutable.List and scala.collection.immutable.Queue. Contributed by Matthew Pocock during the Monthly Docspree. Review by phaller.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25535 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-21 00:29:10 +00:00
extempore
93d7c3be9b
Maybe that last commit was closer than I thought. Don't let
...
0-arg getClass reach bytecode. References SI-4931, no review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25534 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-21 00:26:54 +00:00
extempore
1c824a3fe8
Reverts previous commit. Guess I won't get to skate this one in
...
a hurry, no review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25533 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-20 23:37:09 +00:00
extempore
d0be5ef5b8
Kludge: don't let getClass make it into bytecode.
...
References SI-4931, no review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25531 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-20 23:26:34 +00:00
heathermiller
9df857c88a
Improves documentation of scala.Predef. Contributed by Iain McGinniss during the Aug 20 Docspree. Review by phaller.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25530 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-20 19:52:30 +00:00
kzys
51805d5782
Replaced Application with App in ScalaDoc. Contributed by Simon Ochsenreither. No review.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25529 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-20 19:41:47 +00:00
kzys
4d6bb7beb9
Shows modifiers before kinds. Fixes #4451 . Contributed by Shows modifiers before kinds. Fixes #4451 . Review by heathermiller.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25528 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-20 19:38:57 +00:00
extempore
f104d80085
Moved files to welcome our ant overlords, no review.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25527 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-20 15:14:01 +00:00
ureche
7cfdad5457
[recommit] Backend optimization: Inline exception handlers. Review by dragos.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25526 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-19 21:23:21 +00:00
odersky
2c1b532255
Literals now take Any as argument (used to represent free values in reified trees).
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25525 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-19 16:27:24 +00:00
michelou
7fde6554b9
fixed svn props and presentation check files
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25524 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-19 16:27:22 +00:00
odersky
c6a4a7a72b
New utilitly method to create scope with some elements.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25523 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-19 16:25:32 +00:00
Mirco
ffa3d7d3a6
removed empty presentation compiler's test folders, no review.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25522 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-17 13:48:18 +00:00
Mirco
fe6dfc2ba3
Major rewrite of the testing infrastructure for the presentation compiler. Added several new tests that will be part of the nightly build. Once the move to SBT is completed I will look into how to extract the test infrastructure (as it should really not be living in the compiler codebase). Review by dragos
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25521 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-17 13:32:25 +00:00
Mirco
30ff03ba40
Added --presentation flag in the help message
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25520 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-17 12:56:14 +00:00
extempore
f76f1467de
Looks like I broke -nobootcp at some point. Fixed it, no review.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25519 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-16 16:53:29 +00:00
extempore
e7e4acea09
Improved the error message given when a concrete method implementation
...
doesn't match the abstract one. No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25518 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-16 16:53:16 +00:00
extempore
34fa938a38
Removing the code which has been deprecated since 2.8.0. Contributed by
...
Simon Ochsenreither, although deleting code is such fun one hesitates to
call it a contribution. Still, we will. Closes SI-4860, no review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25511 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-15 20:48:25 +00:00
extempore
be61acff42
Fixed a method which got hosed in the reflection refactor
...
because the meaning of "this" changed. This is a perfect
opportunity to yell "What is the meaning of this!" No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25510 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-15 20:46:47 +00:00
extempore
dc67fbc9ae
A conceivably pretty bad performance bug in builders.
...
SI-4821 pointed out that ArrayBuffer's ++ checks for a cheap size
method by matching on IndexedSeq, but mutable.IndexedSeq, so all
immutable collections are thrown in the same group as linear seqs.
I went looking for other examples of this and found them, in
key classes like Builder.
The "type shadowing trap" is a serious issue in the collections.
Closes SI-4821, no review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25509 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-15 20:46:35 +00:00
phaller
a4c1a37ce7
Reverted r25440 (update of forkjoin library) until all build problems are resolved. No review.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25507 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-15 18:05:50 +00:00
odersky
3e1f5e6981
Split up adapt in some smaller methods; added code lifting for non-function types to it.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25505 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-15 17:24:47 +00:00
odersky
cf62ea6e67
Added debug output to track down Fregor's "failing to lift" problem.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25500 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-15 14:51:59 +00:00
odersky
bba2c81332
Linked Manifests up with Reflection. Manifests now contain a `tpe` field which gives access to the underlying reflection Type.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25499 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-15 12:00:44 +00:00
imaier
778a4934be
Reverting changes in r25491, it is Java 6 stuff. Should unbreak the build.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25498 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-12 19:50:50 +00:00
imaier
c7906ad8f6
Added some missing methods to ListView. Closes #4799 .
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25497 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-12 16:50:51 +00:00
imaier
1912128a2d
Allow null components in split pane. Closes #3929 .
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25496 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-12 16:38:52 +00:00
imaier
f920598023
Pulled up the SuperMixin that calls closeOperations for frames into window and let dialogs mix it in as well. Closes #3708 .
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25495 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-12 16:16:12 +00:00
imaier
8a21ab74a5
Added GraphicsConfiguration to window, frame, dialog constructors. Closes #3853 .
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25494 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-12 15:39:43 +00:00
imaier
74ff40b0d9
Fixes typo in getter methods. Closes #4262 .
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25493 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-12 15:04:47 +00:00
imaier
d7c0bee9c0
Fixes typo in setter method. Closes #4811 .
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25492 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-12 15:01:12 +00:00
imaier
3249d1686c
Applied patch by Gordon Tyler. Closes #4823 .
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25491 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-12 14:56:54 +00:00
imaier
ef8fec22cf
Install mouse moves listeners lazily. Closes #4902 .
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25490 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-12 14:49:38 +00:00
michelou
e1f07dc4dd
fixed text in error message
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25488 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-11 21:40:15 +00:00
kzys
b24e9e66f1
Fixes SI-4507. Actually I can't reproduce this bug. No review.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25487 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-11 16:02:53 +00:00
extempore
4f6ff10e27
Turned up the defense against compiler exceptions in the repl.
...
And gave in and disabled an assertion I should have disabled two
years ago. Closes SI-4874, no review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25486 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-10 07:03:13 +00:00
extempore
cacf0450b5
Expanded the range of a warning, and made suppressed warnings visible.
...
Modified the positioning of "permanently hidden" errors so that when
there is more than one, the later ones are not ignored. Also changed the
error suppression code to emit the error anyway if -Ydebug was given (it
is prefixed with "[suppressed] ".) Since I can't be the only one who
wondered where his errors were vanishing to. No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25485 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-10 00:56:07 +00:00
extempore
d440c79aa6
Reversed the values of "is" and "is not" in recent for comprehension deprecation.
...
DO NOT BLOW HATCH
REPEAT
DO NOT BLOW HATCH
"Roger! Hatch blown."
Events reveal it was all baby, no bathwater. It turns out that the
specification is merely a document, not infallible holy writ as we
had all previously believed. So it is not the ABSENCE of val in a for
comprehension assignment which is deprecated, it is the PRESENCE of val.
Summarizing again, more accurately perhaps:
for (x <- 1 to 5 ; y = x) yield x+y // THAT's the one
for (val x <- 1 to 5 ; y = x) yield x+y // fail
for (val x <- 1 to 5 ; val y = x) yield x+y // fail
for (x <- 1 to 5 ; val y = x) yield x+y // deprecated
No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25484 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-10 00:55:15 +00:00
extempore
9d54213c10
Optimizations for Seq's implementations of sequence search algorithms.
...
Contributed by Rex Kerr. Closes SI-4828, no review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25483 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-09 22:25:37 +00:00
extempore
9e67a26b2d
Moved the classes and objects which are defined in package objects out.
...
In principle this is something you should be able to do. In practice
right now it means bugs, to no advantage.
I also deprecated RangeUtils, an unused, undocumented trait in the
immutable package. It seems like there is a ton of stuff in the public
API which should not be in the public API. It's really tedious having to
go through a whole deprecation cycle to dispose of what could have been
an internal-only class (and was presumably intended as such given the
the absence of documentation.)
No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25482 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-09 22:24:53 +00:00
heathermiller
bbf86cf354
Hugely improves Regex documentation. Contributed by Daniel Sobral. No review.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25475 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-09 20:27:57 +00:00
heathermiller
4b441d846a
Improves Benchmark documentation. Contributed by Daniel Sobral. No review.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25474 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-09 20:20:03 +00:00
heathermiller
fb8aec7586
A big improvement to Ordering documentation. Contributed by Erik Osheim. No review.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25473 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-09 20:09:53 +00:00
heathermiller
d9eed4d676
Adds more documentation to Array. Contributed by Iain McGinniss. No review.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25472 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-09 20:00:27 +00:00
heathermiller
fc3a4b4eb6
Adds documentation to the scala.math package object. Contributed by Christian Krause. No review.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25471 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-09 19:47:36 +00:00
extempore
71db9f2cb8
Another "great moments in java5 vs. java6" which I believe I
...
have lived through before: java5 wrongly prints "volatile" next
to bridge methods, because ACC_BRIDGE uses the same bit as
ACC_VOLATILE. Result: partest failure! No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25470 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-09 19:38:22 +00:00
extempore
bfc1ec47fc
Oops, let some local test code slip in, no review.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25469 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-09 17:38:16 +00:00