summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Dropped about 1.5 Mb off scala-library.jar.Paul Phillips2011-11-0774-189/+301
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit and the two subsequent commits were contributed by: Todd Vierling <tv@duh.org>. I combined some commits and mangled his commit messages, but all the credit is his. This pursues the same approach to classfile reduction seen in r19989 when AbstractFunctionN was introduced, but applies it to the collections. Thanks to -Xlint it's easy to verify that the private types don't escape. Design considerations as articulated by Todd: * Don't necessarily create concrete types for _everything_. Where a subtrait only provides a few additional methods, don't bother; instead, use the supertrait's concrete class and retain the "with". For example, "extends AbstractSeq[A] with LinearSeq[A]". * Examine all classes with .class file size greater than 10k. Named classes and class names ending in $$anon$<num> are candidates for analysis. * If a return type is currently inferred where an anon subclass would be returned, make the return type explicit. Don't allow the library-private abstract classes to leak into the public namespace [and scaladoc].
* Closes IDE-1000567, SI 5013. No Review.Martin Odersky2011-11-071-1/+1
|
* A couple bits of r25957 lost under time pressure.Paul Phillips2011-11-071-1/+1
| | | | | No review.
* Another round of pleasing the gods of init order.Paul Phillips2011-11-074-83/+100
| | | | | | | Moved all the eagerly evaluated bits to the top of the file so I can see them all at once. Let a dozen vals unroll up front so initialization is more predictable. No review.
* Fixing checkinit build.Paul Phillips2011-11-071-14/+10
| | | | | | | | As near as I can tell, -Xcheckinit was failing because a var was read too early as null rather than waiting for it to be set to its initial value, null. I guess that's a defensible warning, since one might change it away from null. Organized the vars in that file better. No review.
* Fix crash with HK types.Paul Phillips2011-11-071-1/+1
| | | | | | | Another page in the storied history of "call .tpe when one should have called .tpeHK", in this case leading to a crash of stacktraciness. Closes SI-5152, review by moors.
* Fixed hang in typechecker.Paul Phillips2011-11-071-1/+1
| | | | | | | Another page in the storied history of "check the normalized type, then act on the unnormalized type", in this case leading to a tight loop of foreverness. Closes SI-5156, review by moors.
* Closed SI-5135michelou2011-11-061-1/+1
|
* Changed presentation tests to use .flags instea...Iulian Dragos2011-11-061-1/+1
| | | | | | Changed presentation tests to use .flags instead of .opts for passing options to the presentation compiler.
* Fixed askLinkPos problem in reported by failing...Martin Odersky2011-11-061-1/+2
| | | | | | Fixed askLinkPos problem in reported by failing test in presentation/akka.
* Revert "Fix for Enumeration."Paul Phillips2011-11-041-1/+1
| | | | | Oops, didn't mean to commit that one. Opens SI-5147. No review.
* Minor change to get closer to building under -X...Paul Phillips2011-11-041-3/+2
| | | | | Minor change to get closer to building under -Xexperimental.
* Fix for Enumeration.Paul Phillips2011-11-041-1/+1
| | | | | Closes SI-5147.
* More elaborate error message.Paul Phillips2011-11-041-3/+8
| | | | | No review.
* More repl work.Paul Phillips2011-11-048-73/+167
| | | | | | | | | Hardened the repl against a bunch of erroneous conditions. Added a :reset command which causes the repl to forget everything you have told it. Added classloader tracing when repl tracing is enabled. :reset is not that useful in its current form but it's the precursor to something more interesting. No review.
* Fix for some repl bitrot.Paul Phillips2011-11-044-27/+40
| | | | | | | | Exception handling beset by entropy. Restored some order. The output of the test may not be stable across platforms, in which case I'll take the usual step of reverting it, thereby achieving victory over failure by testing nothing instead of testing something. No review.
* Some modest optimizations and beauty treatments.Paul Phillips2011-11-045-83/+79
| | | | | No review.
* Repl deadlock fix.Paul Phillips2011-11-041-1/+1
| | | | | | Found the cure for the hanging repl introduced three comits ago. No review.
* Trying to fix sdt core build.Martin Odersky2011-11-031-2/+13
|
* Reflection classloader adjustment.Paul Phillips2011-11-033-6/+31
| | | | | | | | With this change, one can use the reflective compiler with the scala libs on the boot classpath (the default) or not (with -nobootcp) and it will work either way. Maybe it will work in sbt now too, but I haven't tried it. Since I bet you will try it, review by grek.
* ScalaClassLoader changes.Paul Phillips2011-11-0316-110/+155
| | | | | Lots of fiddling in the interests of a better classloading future.
* attempt to bring trunk build to normal state.Hubert Plociniczak2011-11-251-1/+1
|
* Fixed type unsoundness problem in t5120 and als...Martin Odersky2011-11-012-4/+13
| | | | | | | Fixed type unsoundness problem in t5120 and also discovered by roman.kalukiewicz@gmail.com. Fix should be refined further, as I am not convinced we are quite done yet. Review by moors.
* Made some minor change in the presentation comp...Micro Dotta2011-11-012-4/+12
| | | | | | | | Made some minor change in the presentation compiler testing framework to make it more robust when (unexpected) NoPosition values are returned. That makes test failure smoother and more information can be hence gathered from the logged trace. no review.
* Fix for SI-3415 regression.Paul Phillips2011-11-011-0/+1
| | | | | Now there's an unlikely fix. No review.
* Fixed paths for 'neg' tests.Hubert Plociniczak2011-11-012-1/+2
|
* Revert r25648 by michelou, it brakes partestHubert Plociniczak2011-10-314-105/+51
|
* Fix doc comment. no reviewHubert Plociniczak2011-10-311-7/+7
|
* Fix for NumericRange boundary condition.Paul Phillips2011-10-311-1/+1
| | | | | Contributed by Thomas Switzer. Closes SI-4985, no review.
* Fixes NPE using iterator with an XML attribute ...Paul Phillips2011-10-313-4/+12
| | | | | | | | | Fixes NPE using iterator with an XML attribute being null or None ) (SI-5052 Also fixes incorrect size method (SI-5115 ) Contributed by Jordi Salvat i Alabart. Closes SI-5052, SI-5115, no review.
* Clean result of function type.Paul Phillips2011-10-311-1/+1
| | | | | NullaryMethodType was escaping. Closes SI-5099, review by moors.
* Code to locate currently transformed unit in ca...Martin Odersky2011-10-311-1/+8
| | | | | | Code to locate currently transformed unit in case of crashes. Review by extempore.
* Closes #5127. Review by extempore.Martin Odersky2011-10-312-10/+14
|
* Fix for crasher in explicitouter.Paul Phillips2011-10-292-40/+47
| | | | | Closes SI-4970, review by moors.
* Test case closes SI-4875.Paul Phillips2011-10-291-0/+1
| | | | | No review.
* Fix ArrayStack.growArray at boundary.Paul Phillips2011-10-291-1/+1
| | | | | | Doubling a 0-size array is still 0, that's not growing. Closes SI-4963, no review.
* Overhaul of getter/setter synthesis.Paul Phillips2011-10-288-260/+343
| | | | | | | | It represents a lot of work because the mutation flies fast and furious and you can't even blink at these things without upsetting them. They're a little hardier now, or at least we stand a better chance of changing them. Open season on review.
* Tentative fix for IDE #1000663.Martin Odersky2011-10-281-3/+15
|
* Closes t5121. Review by szeiger.Martin Odersky2011-10-281-0/+3
|
* Repl output fix.Paul Phillips2011-10-281-2/+2
| | | | | Don't truncate errors or warnings. No review.
* Better report on missing methods.Paul Phillips2011-10-281-3/+4
| | | | | | Discovered an overloaded method with multiple unimplemented variants only had one listed. Fixed, no review.
* Fix for varargs methods.Paul Phillips2011-10-271-1/+5
| | | | | | Propagate varargs flag from object methods to static forwarders so java will recognize them as varargs.
* Hopefully a fix for the hyperlinking problem.Martin Odersky2011-10-271-18/+20
|
* Fixed problem when running under -Xcheckinit fo...Martin Odersky2011-10-252-2/+2
| | | | | | | Fixed problem when running under -Xcheckinit for the code.scala test by avoiding accessing an unitialized variable. Good catch, -Xcheckinit! Review by extempore.
* Some readability for typer.Paul Phillips2011-10-251-30/+30
| | | | | | "phase.id <= currentRun.typerPhase.id" hurts my brain in all these convoluted conditionals. No review.
* First end-to-end implementation of a runtime re...Martin Odersky2011-10-242-22/+71
| | | | | | First end-to-end implementation of a runtime reflexive compiler that generates and loads bytecodes. Review by szeiger.
* Trying to fix getLinkPos problem reported by Mi...Martin Odersky2011-10-241-39/+64
| | | | | Trying to fix getLinkPos problem reported by Mirco. Review by dotta.
* Reverted r25886.Micro Dotta2011-10-241-42/+28
|
* Added a -Yno-productN option.Paul Phillips2011-10-242-1/+2
| | | | | Suppresses ProductN parent for case classes. No review.
* Fixes IDE ticket #1000692.Micro Dotta2011-10-241-28/+42
|