summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Fix for XML entity bug."Paul Phillips2011-10-041-4/+4
| | | | | | Until I have a second to figure out how a checkfile whose contents are *recorded from running the test case* can fail to match. No review.
* Add a small "template engine" and separete HTML...Kato Kazuyoshi2011-10-047-181/+283
| | | | | | Add a small "template engine" and separete HTML from Scaladoc's source code. Review by ureche.
* Partest now correctly parses -Yrangepos (previo...Hubert Plociniczak2011-10-044-13/+17
| | | | | | | Partest now correctly parses -Yrangepos (previously no effect). Fixed some issues with range positions. partest now passes with -Yrangepos on. review by odersky (mostly done already).
* Fix for XML entity bug.Paul Phillips2011-10-041-4/+4
| | | | | | | | | | | | Hard to believe a bug like this can exist this long. Cay Horstman showed me. // Hey, where's my eacute? scala> <city name="San Jos&eacute;"/>.attributes foreach println name="San Jos&;" No review.
* Removinf reinstantiated Flags because it's not ...Martin Odersky2011-10-031-265/+0
| | | | | | Removinf reinstantiated Flags because it's not needed for IDE building, after all.
* Repairing bitrot with serialization.Paul Phillips2011-10-031-9/+4
| | | | | | | | The comment in SyntheticMethods and the comment in the serialization test said exactly opposite things. The logic at work all seems to be invalid anyway since nested objects are not treated like lazy vals, they have no bitmap. Serialize everything serializable. Review by plocinic.
* Reinstatiated Flags because its removal caused ...Martin Odersky2011-10-031-0/+265
| | | | | Reinstatiated Flags because its removal caused build failures.
* Selective dealiasing when printing errors.Paul Phillips2011-10-0310-76/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *** Important note for busy commit log skimmers *** Symbol method "fullName" has been trying to serve the dual role of "how to print a symbol" and "how to find a class file." It cannot serve both these roles simultaneously, primarily because of package objects but other little things as well. Since in the majority of situations we want the one which corresponds to the idealized scala world, not the grubby bytecode, I went with that for fullName. When you require the path to a class (e.g. you are calling Class.forName) you should use javaClassName. package foo { package object bar { class Bippy } } If sym is Bippy's symbol, then sym.fullName == foo.bar.Bippy sym.javaClassName == foo.bar.package.Bippy *** End important note *** There are many situations where we (until now) forewent revealing everything we knew about a type mismatch. For instance, this isn't very helpful of scalac (at least in those more common cases where you didn't define type X on the previous repl line.) scala> type X = Int defined type alias X scala> def f(x: X): Byte = x <console>:8: error: type mismatch; found : X required: Byte def f(x: X): Byte = x ^ Now it says: found : X (which expands to) Int required: Byte def f(x: X): Byte = x ^ In addition I rearchitected a number of methods involving: - finding a symbol's owner - calculating a symbol's name - determining whether to print a prefix No review.
* Shuffling classes around.Paul Phillips2011-10-0123-107/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Old Man Reflection is coming home and he's not going to like finding out a bunch of beans have moved into his reflecting room. We had better evict those guys before he blows his stack. scala.reflect.*Bean* --> scala.beans.* scala.beans, that's kind of a fancy package name for some beans. I figure it's time to start fishing or cutting bait on this kind of thing. I don't even know what beans are, but if we're going to have them in the mainline, the least surprising place to find them is scala.beans. If we don't want to put them in scala.beans for whatever reason, then I say they don't belong in trunk at all. Bonus round: scala.annotation.target --> scala.beans.meta I don't know if there is any more unfortunate name for a package possible than "target". Maybe ".svn" or ".git" if you could have dots in package names. Package CVS wouldn't hit too hard these days. Package lib_managed? I'll try to come up with something. In any case this golden opportunity could not be squandered. There is a new starr included, because GenJVM contains all kinds of shooting-from-the-hip Bean-related name hardcoding. (Yes, still. I ran out of stones. So a few birds escape with their lives... this time.)
* Cleanups involving name encoding and decoding.Martin Odersky2011-09-3010-12/+14
|
* First untested attempt to create a runtime comp...Martin Odersky2011-09-302-20/+76
| | | | | | First untested attempt to create a runtime compiler. Review by extempore.
* Fixed position error in Parsers detected by Hub...Martin Odersky2011-09-301-1/+1
| | | | | Fixed position error in Parsers detected by Hubert.
* Elininated previously deprecated package reflec...Martin Odersky2011-09-3015-3189/+0
| | | | | Elininated previously deprecated package reflect.generic
* Massively simplified caseFieldAccessors.Paul Phillips2011-09-303-110/+104
| | | | | | | | | It's nice when you can delete such absurd complication by figuring out how to avoid it in the first place. Also includes some Namer cleanup as I tried to follow the logic involved to fix a protected[this] accessor bug. No review.
* My suspicion that unsafeTypeParams was "double-...Paul Phillips2011-09-301-5/+5
| | | | | | | My suspicion that unsafeTypeParams was "double-adjustment-dipping" its phase manipulation is borne out by the fact that no tests were harmed in the removal of the second adjustment. OK, review by odersky.
* Reflection classloader hack.Paul Phillips2011-09-291-1/+13
| | | | | | Finding top level classes from the command line. Hackiness will diminish greatly. Review by odersky.
* Removed special comments on Martin's requestmichelou2011-09-2915-356/+10
|
* Following Paul's detective work, fixed Java cla...Martin Odersky2011-09-291-1/+1
| | | | | | Following Paul's detective work, fixed Java class loading in reflection. Moved test code.scala into checkin build. Yay!
* A few pending refinements to SyntheticMethods.Paul Phillips2011-09-281-55/+61
| | | | | No review.
* Improved an error message.Paul Phillips2011-09-281-3/+3
| | | | | Closes SI-4319, no review.
* Fix bug in ModuleDef elimination.Paul Phillips2011-09-282-14/+14
| | | | | Fixes corner case diagnosed by miguel. Closes SI-5012, no review.
* BigDecimal adjustments.Paul Phillips2011-09-281-7/+7
| | | | | | More sensible use of MathContext, plus some BigDecimal tests. Contributed by Erik Osheim. Closes SI-4981, no review.
* Hand specialized SettingValue.Paul Phillips2011-09-283-22/+28
| | | | | | | | | | | | | | | Discovered every time we do something like if (settings.debug.value) the boolean is coming out of a box. How uncouth. To fix this, I had to make the storage abstract, so concrete setting types have to declare the storage personally. This seems a small price to pay. I tried to use specialization but I think it's impossible to get the type parameter and the abstract type to agree with one another when mr. invariant var is the object of your affection, without scalac putting the kibosh on the whole adventure. No review.
* Pulling wool over ant's eyes.Paul Phillips2011-09-281-0/+3
| | | | | No review.
* More consistent usage of atPhase.Paul Phillips2011-09-283-28/+27
| | | | | | | | | | Some improvables I noticed while working on a fingerprint phase. This eliminates fifty classes from the compiler. My new hobby is reading the whole bytecode diff anytime I'm touching something like unsafeTypeParams where I know someone is liable to start praying for my network access to fail, so I hope knowing that fills you with new confidence. Anyway, review by moors.
* Fixes #4895.Aleksandar Pokopec2011-09-282-2/+8
| | | | | | | The size map size computation for parallel hash sets was invalid. No review.
* Oops, can't even revert right.Paul Phillips2011-09-281-1/+1
| | | | | No review.
* Put back the XXX line in partest.Paul Phillips2011-09-281-1/+2
| | | | | | Classpaths and partest, soon to be jointly responsible for one or more tragedies. No review.
* Fix for classpaths.Paul Phillips2011-09-283-6/+3
| | | | | Not sys.props("CLASSPATH"), sys.env("CLASSPATH"). No review.
* Fixes #4894.Aleksandar Pokopec2011-09-282-5/+10
| | | | | | | Adds Growable and Shrinkable to parallel maps and sets. No review.
* Adding latest failures to code.scala test.Martin Odersky2011-09-281-1/+1
|
* Fixed infinite loop in reification reported by ...Martin Odersky2011-09-282-8/+9
| | | | | Fixed infinite loop in reification reported by Paul.
* More fixes to reflection; cleaned up output.Martin Odersky2011-09-286-19/+23
|
* Fixes #4716.Aleksandar Pokopec2011-09-272-7/+23
| | | | | | | | | | | During the generation of the specialized method implementation, local lazy vals in specialized classes were getting duplicated and assigned new (different) names. Also, the identifiers referring to them were not getting updated. This is fixed now. Further, the mutable flag is no longer getting set for a lazy val during method body duplication. Review by Dragos.
* Made needsJavaSig method public so that it can ...Micro Dotta2011-09-271-1/+1
| | | | | | Made needsJavaSig method public so that it can be used from the IDE side. No review.
* Correcting resolution of top-level objects in r...Martin Odersky2011-09-273-8/+16
| | | | | Correcting resolution of top-level objects in reflection.
* more fixes to reflection.Martin Odersky2011-09-274-12/+12
|
* Stripped a bunch of hostile code.Paul Phillips2011-09-261-16/+2
| | | | | Closes SI-5026, no review.
* ProductN, and method synthesis toolbox.Paul Phillips2011-09-267-233/+332
| | | | | | | | | | | | | | | | | | | | | | - Finished giving case classes a ProductN parent, and flipped it on. The "finish" part involved not breaking existing code where case classes manually extend the appropriate ProductN. (Like, Tuple 1-22.) - Generalized most of SyntheticMethods to ease method creation and class manipulation in general. - Fixed bugs related to the above, like the fact that this used to be a compile error: scala> case class Foo() extends Serializable <console>:28: error: trait Serializable is inherited twice case class Foo() extends Serializable ^ It feels like there's a better way to eliminate the duplicate parents, but after spending a lot of time chasing my tail in that peril-fraught zone between namer and typer, I don't see an easy path to improve on it. Closes SI-1799. For that modification to Typers, review by odersky.
* More fixes to reflection and code lifting.Martin Odersky2011-09-2610-31/+75
|
* Fixes #4351.Aleksandar Pokopec2011-09-261-11/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | Added an "Abstract" method info to the specialized phase, which denotes that no implementation should be generated. Previously: trait A[@specialized(Boolean) T] { def foo: T } used to generate: trait A$mcZ$sp extends A[Boolean] { def foo$mcZ$sp = this.foo } which caused cyclic calls because of linearization rules when several traits are mixed together. Now, the following is generated: trait A$mcZ$sp extends A[Boolean] { def foo$mcZ$sp: Boolean } Review by dragos.
* Making toolboxes more useful.Martin Odersky2011-09-261-5/+11
|
* Added missing file.Martin Odersky2011-09-261-0/+48
|
* Getting liftCode to work.Martin Odersky2011-09-258-273/+213
|
* updated man pages, fixed svn props, did some cl...michelou2011-09-2513-107/+404
| | | | | updated man pages, fixed svn props, did some cleanup
* Cleanup in aisle superaccessors.Paul Phillips2011-09-241-75/+61
| | | | | Efficiency plus, redundancy minus, no review.
* Handling Freevars in Importers and discovering ...Martin Odersky2011-09-235-76/+90
| | | | | | Handling Freevars in Importers and discovering whole new classes of errors in Liftcode.
* Now correctly handles moduleclasses in ImportersMartin Odersky2011-09-232-4/+8
|
* Back to square one.Hubert Plociniczak2011-09-2322-2309/+891
| | | | | | | | | | | | | | Current design of error trees complicates the design of reflection library, and introduces sometimes unnecessary boilerplate and since I do not want to stall that work I am reverting all the changes related to error trees. A different design is currently under consideration but work will be done on separate branch on github. Revisions that got reverted: r25705, r25704 (partially), r25673, r25669, r25649, r25644, r25621, r25620, r25619 Review by odersky and extempore.
* Fixing isTrivial in NullaryMethod.Paul Phillips2011-09-221-40/+14
| | | | | | | | | | | | 1) Made NullaryMethodType a SimpleTypeProxy. (This is incidental to isTrivial, it just seemed like the right thing to do.) 2) Modified implementations of isTrivial for MethodType and NullaryMethodType to only be considered trivial if there are no annotations on the return type. This means asSeenFrom will not be skipped and the continuations plugin will work properly. There are a lot of other angles one could take, so review by moors, rompf.