summaryrefslogtreecommitdiff
path: root/src/compiler
Commit message (Collapse)AuthorAgeFilesLines
* Sin some more.Paul Phillips2011-11-133-3/+5
| | | | | | | | | | | "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.
* 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-134-56/+99
| | | | | | | | | | | | | | | | | | | | | | 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.
* Work in progress on #4541.Aleksandar Pokopec2011-11-112-3/+45
| | | | | No review.
* Small changes to reflection prompted by code re...Martin Odersky2011-11-114-8/+25
| | | | | Small changes to reflection prompted by code review.
* Deprecated ambiguous dot syntaxes.Paul Phillips2011-11-113-5/+39
| | | | | | | | | | | | | | | 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-111-0/+6
| | | | | | 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-101-1/+4
| | | | | | | | | | | | | | 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.
* 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-101-1/+2
| | | | | | | 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
|
* (1) Made ReflectionUtils an object, to take its...Martin Odersky2011-11-104-20/+11
| | | | | | | (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.
* 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-081-2/+13
| | | | | | | | | | | 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-081-47/+57
| | | | | | | Check number of arguments before jumping to conclusion that a primitive seeming structural call might really be primitive. Closes SI-4766, no review.
* Closes IDE-1000567, SI 5013. No Review.Martin Odersky2011-11-071-1/+1
|
* Another round of pleasing the gods of init order.Paul Phillips2011-11-072-78/+87
| | | | | | | 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.
* 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-0314-103/+148
| | | | | 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-011-1/+1
|
* 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.