summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Shuffling classes around.Paul Phillips2011-10-0134-128/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Removed redundant testMartin Odersky2011-09-301-4/+0
|
* Elininated previously deprecated package reflec...Martin Odersky2011-09-3015-3189/+0
| | | | | Elininated previously deprecated package reflect.generic
* Massively simplified caseFieldAccessors.Paul Phillips2011-09-305-112/+106
| | | | | | | | | 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-293-1/+19
| | | | | | 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-282-56/+61
| | | | | No review.
* Improved an error message.Paul Phillips2011-09-285-19/+26
| | | | | Closes SI-4319, no review.
* Fix bug in ModuleDef elimination.Paul Phillips2011-09-283-14/+26
| | | | | Fixes corner case diagnosed by miguel. Closes SI-5012, no review.
* BigDecimal adjustments.Paul Phillips2011-09-283-7/+48
| | | | | | 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-283-2/+28
| | | | | | | 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-283-5/+37
| | | | | | | Adds Growable and Shrinkable to parallel maps and sets. No review.
* Adding latest failures to code.scala test.Martin Odersky2011-09-282-3/+11
|
* Fixed infinite loop in reification reported by ...Martin Odersky2011-09-282-8/+9
| | | | | Fixed infinite loop in reification reported by Paul.
* Added Paul's failing scenario to test file.Martin Odersky2011-09-281-1/+12
|
* More fixes to reflection; cleaned up output.Martin Odersky2011-09-286-19/+23
|
* Removed a log file from the test dir.Aleksandar Pokopec2011-09-271-6/+0
| | | | | No review.
* Fixes #4716.Aleksandar Pokopec2011-09-274-7/+39
| | | | | | | | | | | 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-274-9/+17
| | | | | Correcting resolution of top-level objects in reflection.
* Added new test file for reification/relfection,...Martin Odersky2011-09-271-0/+33
| | | | | | Added new test file for reification/relfection, which does not work yet under partest, but works when run individually.
* removed redundant testMartin Odersky2011-09-271-20/+0
|
* 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-2612-320/+422
| | | | | | | | | | | | | | | | | | | | | | - 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
|
* Disable currently failing pos/code.scala.Hubert Plociniczak2011-09-261-0/+0
|
* Fixes #4351.Aleksandar Pokopec2011-09-263-11/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Added test for the completion problem in the pr...skyluc2011-09-264-0/+53
| | | | | | Added test for the completion problem in the presentation compiler reported in the scala-ide ticket 1000620.
* 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-2512-274/+214
|
* 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-236-77/+93
| | | | | | Handling Freevars in Importers and discovering whole new classes of errors in Liftcode.
* Now correctly handles moduleclasses in ImportersMartin Odersky2011-09-233-11/+11
|
* Back to square one.Hubert Plociniczak2011-09-2329-2349/+927
| | | | | | | | | | | | | | 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.
* Removed devirtualize.Paul Phillips2011-09-2218-736/+70
| | | | | | | It was time. Removed unused flags and devirtualize detritus. Cleaned up flags a bit further. Fixed the contents of phaseNewFlags in those places where it was inaccurate. No review.