summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Reverted ProductN parent for case classes.Paul Phillips2011-11-168-77/+89
| | | | | Looks like we will need blood, toil, tears, and sweat. No review.
* Added missing file from last commitMartin Odersky2011-11-151-0/+46
|
* Towards better reflection APIs.Martin Odersky2011-11-1521-430/+886
|
* Amending my previous commit with a comment expl...Iulian Dragos2011-11-151-0/+5
| | | | | | Amending my previous commit with a comment explaining a bit better what my code does and why.
* Made LazyType fail more graciously with incompl...Iulian Dragos2011-11-151-2/+9
| | | | | | | | | | | | | | | | | | | Made LazyType fail more graciously with incomplete class paths. SymbolLoaders already do the right thing, printing an error instead of crashing the compiler. However, the unpickler has two more lazy types that crash and stop the compiler if, on completion, it encounters a reference to a missing class file. Since the SymbolTable has no way of reporting an error, we convert the MissingRequirementError in TypeErrors. This has the benefit of being printed nicely by the type checker (with a position where the type was needed). This fixes extremely worrying behavior in the IDE when the class path is incomplete (for instance, after a rebuild with compilation errors). review by odersky, extempore.
* Changed reflection to allow getting a Scala Sym...amin2011-11-152-10/+32
| | | | | | Changed reflection to allow getting a Scala Symbol for the implementation class of a trait.
* factoring more into ProtoTreeMakersAdriaan Moors2011-11-141-67/+82
| | | | | | | | | contemplating the demise of ProtoTreeMaker, could TreeMaker be all we need? no review, but with apologies if this generates merge conflicts for those exhausting themselves
* got rid of unsafe in typedSubstAdriaan Moors2011-11-141-39/+27
| | | | | | | | don't need to re-type to the original type for correctness (was more to verify the substitution was indeed type-preserving whenever possibly) no review
* minor cleanup in virtpatmatAdriaan Moors2011-11-141-15/+11
| | | | | no review
* null-robustness for presentation testAdriaan Moors2011-11-141-2/+6
| | | | | | | | | ran into NPEs while running the test suite using the virtpatmat compiler, decided it might happen to others thus undertook to shield said others from sad NPEs no review
* revert r25877. no reviewLukas Rytz2011-11-1418-0/+0
|
* Turning line endings to unix.Paul Phillips2011-11-131-33/+33
| | | | | This is my last idea regarding the windows build.
* behold ExtractorCall: encapsulating extractorsAdriaan Moors2011-11-131-202/+222
| | | | | | | | also, moving more codegen out of translation and into codegen in preparation of making codegen suitable for analysis no review, though I'm sure extempore will be all over this
* Added functionality to clear project files from...Martin Odersky2011-11-132-5/+78
| | | | | Added functionality to clear project files from a resident compiler.
* Minor virtpatmat cleanup.Paul Phillips2011-11-131-1/+2
|
* Sin some more.Paul Phillips2011-11-135-3/+12
| | | | | | | | | | | "Fiddle with lubs and glbs by never considering getClass as a member in a refinement generated from them. In a sense we have justification for this by saying we already treated getClass in an ad-hoc way, so we might as well go all the way." -- m. odersky Closes SI-4846.
* Fix to bitrot in profiling code.Paul Phillips2011-11-131-2/+2
|
* Testing a theory about the windows build.Paul Phillips2011-11-131-1/+1
|
* scala.bat expansion with quotes and spaces.Paul Phillips2011-11-131-2/+2
| | | | | Closes SI-4858.
* Delayed expansion in scala.bat.Paul Phillips2011-11-131-3/+5
| | | | | Closes SI-4019.
* More defense against spaces in paths.Paul Phillips2011-11-131-1/+3
| | | | | Closes SI-3047.
* Working on the runners.Paul Phillips2011-11-135-73/+122
| | | | | | | | | | | | | | | | | | | | | | Removed assumption that bash is in /bin. Removed --posix option to bash. Modernized shell constructs: $() instead of ``, [[ ]] instead of [ ]. Added -debug option for all runners which will show you the exact java command line being run before running it. Added -usebootcp to complement -nobootcp, and made regular classpath the default on cygwin. Quoted more things to give us a fighting chance against spaces and parens in paths. I took the waste-half-a-day step of installing vmware fusion so I could install windows so I could install cygwin so I could install scala under cygwin so I could see if it still worked. Seems to. We still desperately need some way of testing not only everything I'm attempting to address in this pile of patches but everything which is most likely now regressing. :javap now sort of works on windows (not for repl-defined classes as yet) if JAVA_HOME is set such that I can find tools.jar. Closes SI-4959. (Risks breaking and) references SI-2092. References SI-622 since that shouldn't be hard to get working.
* Made windows less aggressive about failing.Paul Phillips2011-11-131-2/+1
| | | | | | | | | | | | | There's no way to ever correctly check against a platform String and then fail if it doesn't exactly match. You have to handle such things gracefully, because even if you have omniscience and omnipotence at the time you write it, you will become wrong later. // example of a condition a vast distance from what should // be tested before intentionally failing if "%OS%" NEQ "Windows_NT" Closes SI-4800.
* Makes -toolcp available on windows.Paul Phillips2011-11-131-0/+20
| | | | | Contributed by Matthew Farwell. Closes SI-5062.
* Enabled Presentation Compiler test for IDE tick...Micro Dotta2011-11-114-0/+6
| | | | | | Enabled Presentation Compiler test for IDE ticket #1000609, which has been fixed by odersky. no review.
* Changes the fork join pool detection for JVM1.7...Aleksandar Pokopec2011-11-112-2/+2
| | | | | | | | Changes the fork join pool detection for JVM1.7, for actors and parallel collections libraries. Review by phaller.
* Work in progress on #4541.Aleksandar Pokopec2011-11-112-3/+45
| | | | | No review.
* Enabled Presentation Compiler test for IDE tick...Micro Dotta2011-11-115-3/+47
| | | | | | Enabled Presentation Compiler test for IDE ticket #1000349, which has been fixed by odersky in r25625. no review.
* Small changes to reflection prompted by code re...Martin Odersky2011-11-115-9/+26
| | | | | Small changes to reflection prompted by code review.
* Deprecated ambiguous dot syntaxes.Paul Phillips2011-11-119-5/+85
| | | | | | | | | | | | | | | 1.+(2) - what is it? Is it 3 or 3.0? Come scala 2.11 you won't have to not know (or even not know there's something you don't know.) 1.+(2) will then be safely considered equivalent to 1 + 2, because any dot not followed by a digit is not part of a number. Primarily, that's these forms: 3.f 3.d 3. If you prefer an error to a warning, use -Xfuture. Let's deprecate 012 == 10 too! (See comment.) References SI-5089, no review.
* Cleanup around typeref creation and rebinding.Paul Phillips2011-11-112-59/+39
|
* A comment answering one of adriaan's philosophi...Paul Phillips2011-11-112-0/+14
| | | | | | A comment answering one of adriaan's philosophical musings on why programs fail, and a test case informed by the comment. Review by moors.
* Allow to load $class classes using Scala reflec...Grzegorz Kossakowski2011-11-102-1/+22
| | | | | | | | | | | | | | Allow to load $class classes using Scala reflection. Tweaked implementation of invalidClassName method to exclude *$class clasess from the set of invalid names. It's not exactly clear what was the intent of this method in first place so I'm not sure if it's the best way to fix SI-5176. Added test-case that covers this issue. Fixes SI-5176. Review by odersky.
* Fixing tests, no review.Paul Phillips2011-11-101-1/+1
|
* Better virtpatmat situation.Paul Phillips2011-11-101-1/+2
| | | | | | | | Enabled fancy type inference if opt.virtPatMat is true so one need not enable -Xexperimental to use El Virto (since I keep wasting time on edge cases arising from unrelated -Xexperimental-enabled features.) No review.
* Fix for regression in overriding with defaults.Paul Phillips2011-11-102-1/+13
| | | | | | | I should know better than to behave as if usable inferences can be drawn from a comment like "SYNTHETIC because of DEVIRTUALIZE". Maybe it was even true when it was written, but no more. Closes SI-5178, no review.
* More refinements for the scratchpad.Martin Odersky2011-11-102-30/+93
|
* Removed reflect.{Type, Symbol, Tree, Print} for...Martin Odersky2011-11-104-319/+0
| | | | | Removed reflect.{Type, Symbol, Tree, Print} for good.
* (1) Made ReflectionUtils an object, to take its...Martin Odersky2011-11-106-26/+17
| | | | | | | (1) Made ReflectionUtils an object, to take its members out of the reflect package. (2) Removed old Type/Symbol/Tree from reflect package. (3) Got scratchpad to work better. Review by extempore.
* Fixed name of MODULE$ field to make scratchpad ...Martin Odersky2011-11-091-1/+1
| | | | | | Fixed name of MODULE$ field to make scratchpad work again. Need to look into more robust way of doing things using reflection.
* refactoring virtpatmat into modules, cleaning upAdriaan Moors2011-11-092-384/+416
| | | | | | | | | | the long-term goal is to separate: - analyzing patterns and turning them into extractors that are flatMap'ed and orElse'ed, where the structure is expressed in a small intermediate language that preserves more pattern matching-specific meaning than trees - more advanced analyses on the intermediate representation - code generation (patmat IR -> Scala AST) -- this should be trivial
* Unified binary representations under AbstractFile.Paul Phillips2011-11-086-27/+41
| | | | | | | | Created MsilFile as a wrapper around MSILType so we can use AbstractFile everywhere. This initial attempt is fairly ham-fisted, since I'm not sure exactly how things are used on the msil side; but it is imposing undue complication on the loaders. Review by magarcia.
* Updates for the ten tests I broke recently.Paul Phillips2011-11-0810-19/+43
| | | | | Wow, ten tests, that's unexpected. No review.
* Fix binary breakage.Paul Phillips2011-11-081-8/+16
| | | | | | | | | Some philistine who thinks "binary compatibility" is a computer dating site changed the names of public vals in Predef classes. I restored and then deprecated them. REVIEW BY MOORS.
* Fixing experimental feature.Paul Phillips2011-11-081-1/+1
| | | | | Avoid generating illegal combination of modifiers. No review.
* Distentangled platform specific code from loade...Martin Odersky2011-11-086-84/+105
| | | | | | | Distentangled platform specific code from loaders so that it becomes possible to reset class symbols to their initial loader wihtout going through an all-or-nothing recursive buildups of package scopes,.
* smarter bridges to unappliesAdriaan Moors2011-11-083-2/+54
| | | | | | | | | | | wraps the call to a bridged synthetic unapply(Seq) in a defensive if-test: if (x.isInstanceOf[expectedType]) real.unapply(x.asInstanceOf[expectedType]) else None NOTE: the test is WRONG, but it has to be due to #1697/#2337 -- once those are fixed, this one should generate the expected output
* Fixing logic in structural types.Paul Phillips2011-11-083-47/+65
| | | | | | | Check number of arguments before jumping to conclusion that a primitive seeming structural call might really be primitive. Closes SI-4766, no review.
* Third collections commit from Todd Vierling.Paul Phillips2011-11-0715-35/+47
| | | | | | | Misc cleanups associated with the previous commits: limiting overly expanded types, fixing externally visible types for scaladoc, utilizing abstract collection classes where possible, etc.
* Next collections commit from Todd Vierling.Paul Phillips2011-11-078-17/+23
| | | | | Changes to library code outside the collections.