summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #700 from jsuereth/fix-libs-in-buildv2.10.0-M4Josh Suereth2012-06-112-187/+252
|\ | | | | Fix libs in build
| * MSIL now build as part of compiler.Josh Suereth2012-06-111-94/+90
| | | | | | | | | | | | * MSIL is now compiled/embedded with compiler * Tested building new STARR, everything groovy * Can probably remove msil/forkjoin/fjbg from STARR now that they're properly embedded/built.
| * Forkjoin and fjbg are now always compiled in the build.Josh Suereth2012-06-112-97/+166
|/ | | | | * forkjoin.done/forkjoine.clean can test forkjoin source * fjbg.done/fjbg.clean can test fjbg source.
* Merge pull request #698 from retronym/ticket/5696Adriaan Moors2012-06-114-0/+73
|\ | | | | SI-5696 Detect excess constructor argument lists.
| * SI-5696 Detect excess constructor argument lists.Jason Zaugg2012-06-104-0/+73
| | | | | | | | An apply method fooled the usual mechanism.
* | Merge pull request #699 from retronym/ticket/5162Adriaan Moors2012-06-1110-12/+61
|\ \ | |/ |/| SI-5162 Exclude super.foo from the erasure cast of SI-4283
| * SI-5162 Exclude super.foo from the erasure cast of SI-4283Jason Zaugg2012-06-1110-12/+61
|/ | | | | | | | | If the target method is defined in Java, treat the super reference as an error, otherwise allow it in the knowledge that Scala loosens the access restrictions on its generated classes. Moves the test for that bug out of pending-ville. It's sufficient to place Test in the empty package to exercise the right code paths.
* Merge pull request #694 from retronym/ticket/4831-2Adriaan Moors2012-06-094-3/+32
|\ | | | | SI-4831 Fix ambiguous import detection for renamed imports.
| * SI-4831 Fix ambiguous import detection for renamed imports.Jason Zaugg2012-06-094-3/+32
| |
* | Merge pull request #696 from retronym/topic/intellij-reflect-module3Adriaan Moors2012-06-093-1/+27
|\ \ | | | | | | An IntelliJ module for reflect.
| * | An IntelliJ module for reflect.Jason Zaugg2012-06-093-1/+27
| |/
* | Merge pull request #695 from adriaanm/topic-virtpatmatAdriaan Moors2012-06-094-12/+51
|\ \ | | | | | | better unreachability for selections
| * | better unreachability for selectionsAdriaan Moors2012-06-094-12/+51
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Consts are hashconsed modulo static-approximation-for-dynamic-value-equality thus, two value-equality tests in patterns should reuse the same ValueConst if and only if the tested values are guaranteed to be equal in all possible executions the implementation uses unique types to track unique consts for an Ident with a stable symbol, we simply use the corresponding singleton type for a Select, we have to indirect some more: we store all the unique trees we've encountered and a unique type for each of them this unique type is then used to find the uniqut const that approximates the run-time value this may seem roundabout, but we need to standardize on types for representing "value" tests, as a type test against a singleton type must give rise to the same ValueConst as a value test using a tree that refers to the same symbol as the singleton type test
* | Merge pull request #691 from scalamacros/topic/tests-for-fixed-bugsAdriaan Moors2012-06-097-0/+49
|\ \ | |/ |/| tests for fixed bugs
| * test case, closes SI-5840Eugene Burmako2012-06-091-0/+7
| |
| * test case, closes SI-5881Eugene Burmako2012-06-092-0/+8
| |
| * test case, closes SI-5816Eugene Burmako2012-06-092-0/+18
| |
| * test case, closes SI-5738Eugene Burmako2012-06-091-0/+8
| |
| * test case, closes SI-5742Eugene Burmako2012-06-091-0/+8
|/
* Merge pull request #688 from scalamacros/topic/quickfix-09bf95675bJosh Suereth2012-06-081-1/+1
|\ | | | | A quickfix for 09bf95675b
| * A quickfix for 09bf95675bEugene Burmako2012-06-091-1/+1
|/
* Merge pull request #686 from scalamacros/topic/lockerabstractfinalJosh Suereth2012-06-083-3/+3
|\ | | | | A remedy for Illegal class modifiers in locker
| * A remedy for Illegal class modifiers in lockerEugene Burmako2012-06-083-3/+3
| | | | | | | | | | More details here: http://groups.google.com/group/scala-internals/browse_thread/thread/fbd6d9f923f1cc89
* | Merge pull request #685 from scalamacros/topic/antbatinvocationsJosh Suereth2012-06-081-2/+10
|\ \ | | | | | | fixes a bug with bat files invocation from ant
| * | fixes a bug with bat files invocation from antEugene Burmako2012-06-081-2/+10
| |/ | | | | | | | | | | http://ant.apache.org/manual/Tasks/exec.html Note that .bat files cannot in general by executed directly. One needs to execute the command shell executable cmd using the /c switch.
* | Merge pull request #660 from retronym/ticket/5167-3Josh Suereth2012-06-085-5/+40
|\ \ | |/ |/| SI-5167 An impl class method should refer to its own parameter symbols.
| * SI-5167 An impl class method should refer to its own parameter symbols.Jason Zaugg2012-06-035-5/+40
| | | | | | | | | | | | | | | | Rather than those of the original method in the trait. If they are shared, parameter renaming in the implementaion class is visible in the original method. This led to a crash in the resident compiler when looking up the default argument getter.
* | Merge pull request #631 from retronym/ticket/5652-3Adriaan Moors2012-06-089-12/+76
|\ \ | | | | | | SI-5652 Mangle names of potentially public lambda lifted methods.
| * | SI-5652 Mangle names of potentially public lambda lifted methods.Jason Zaugg2012-05-269-12/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This can happen if they are accessed from an inner class. If a subclass is happens to lift a public method to the same name, a VerifyError ensues. The enclosed tests: - demonstrate the absense of the VerifyError - show the names generated for the lifted methods (which are unchanged if not called from an inner class, or if lifted into a trait implementation class.) - ensure that the callers are rewritten to call the correct method when multiple with the same name are lifted. It's not ideal that this phase needs a priori knowledge of the later phases to perform this mangling. A better fix would defer this until the point when the methods are publicised, and leave the unmangled private method in place and install an public, mangled forwarder.
* | | Merge pull request #679 from axel22/issue/5853Adriaan Moors2012-06-083-1/+72
|\ \ \ | | | | | | | | Fix SI-5853.
| * | | Fix SI-5853.Aleksandar Prokopec2012-06-073-1/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This solves two issues. First, up to now the newly generated symbols for normalized members were not being added to the declaration list of the owner during `specialize`. Now they are. Second, during `extmethods`, the extension methods generated get an additional curried parameter list for `$this`. Trouble was, after that, during `uncurry` and before `specialize`, these curried parameter lists were merged into one list. Specialization afterwards treats extension methods just like normal methods and generates new symbols without the curried parameter list. The `extensionMethod` now takes this into account by checking if the first parameter of a potential extension method has the name `$this`. Review by @dragos. Review by @odersky.
* | | | Merge pull request #684 from scalamacros/pullrequest/reflectionAdriaan Moors2012-06-081078-10999/+16298
|\ \ \ \ | | | | | | | | | | The new reflection
| * | | | Avoids cyclic reference error in AddInterfaces.Martin Odersky2012-06-082-68/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Compile Global or Typers twice in resident mode yielded a CyclicReference error, in phase erasure. The error was due to a cyclic call of isDerivedValue class. Checking I noted that isDerivedValue class is called very often, and mostly unneccessesarily. I tightened teh condition to not force the type of the class if it is a trait or package. This made the CyclicReference go away. Widened criterion that enables validation of derived value classes. Previous version made two neg tests slip through.
| * | | | Reduce time spent in lubsMartin Odersky2012-06-088-78/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce time spent in lubs by making depth more adaptive. It now takes into account separately the depth of the lub types and the maximal depth of theior base type sequences. It cuts depth more aggressively if it is the base types instead of the types themselves that grow deep. The old truncation behavior is retained under option -Xfull-lubs Another change is that we now track depth more precisely, which should also help or at least allow better statistics. Also added statistics that measure #lubs and time spent in them.
| * | | | tests and fixes for the mirror APIEugene Burmako2012-06-0848-108/+471
| | | | |
| * | | | a quickfix for test/partestEugene Burmako2012-06-081-1/+1
| | | | |
| * | | | don't warn about abstract types that are checkableAdriaan Moors2012-06-083-47/+59
| | | | |
| * | | | turn unchecked type patterns into checked onesAdriaan Moors2012-06-085-20/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the pattern `(_: T)` is made checkable using (ct: ClassTag[T]).unapply by rewriting it to `ct(_: T)` (if there's a ClassTag[T] available) similarly for extractors: if the formal type of the unapply method is an uncheckable type, wrap in the corresponding classtag extractor (if available) don't trigger rewrite on non-toplevel unchecked types (i.e., only look at type constructor part of T when looking for unchecked types) TODO: find outer match to figure out if we're supposed to be unchecked would like to give users a chance to opt-out from the wrapping, but finding the match to which this pattern belongs turned out to be tricky...
| * | | | de-duplicate isUncheckedAnnotation/isSwitchAnnotationAdriaan Moors2012-06-083-10/+10
| | | | |
| * | | | unapply may be called on arbitrary treeAdriaan Moors2012-06-081-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | before, an unapply call would be derived from a case SomeClass(_, ..., _) pattern, where SomeClass is a valid constructor reference, and thus also a reference to an unapply-bearing companion object this assumption is going to be violated once we start using class tags to make uncheckable type tests checkable, since we could encounter unapply calls like {<method calls that construct classTag>}.unapply(<arg>)
| * | | | pull out doTypedUnapply from doTypedApplyAdriaan Moors2012-06-081-56/+63
| | | | |
| * | | | the final touch: scala/reflect added to scaladoc!Eugene Burmako2012-06-081-1/+2
| | | | |
| * | | | Reverting 22c8dec5 and preventing bootstapping in scaladocVlad Ureche2012-06-0822-142/+94
| | | | | | | | | | | | | | | | | | | | | | | | | Review by @dragos, @jsuereth. Required bootstrapping because the starr was ant tasks were invoking locker with -Ysourcepath instead of -sourcepath.
| * | | | fixes some issues with reflectField brought up todayEugene Burmako2012-06-0813-7/+169
| | | | |
| * | | | quickfix for a nasty assertionEugene Burmako2012-06-081-5/+17
| | | | |
| * | | | TypeTag => AbsTypeTag, ConcreteTypeTag => TypeTagEugene Burmako2012-06-08119-595/+577
| | | | | | | | | | | | | | | | | | | | | | | | | This protects everyone from the confusion caused by stuff like this: https://issues.scala-lang.org/browse/SI-5884
| * | | | removes array tagsEugene Burmako2012-06-0882-510/+269
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before 2.10 we had a notion of ClassManifest that could be used to retain erasures of abstract types (type parameters, abstract type members) for being used at runtime. With the advent of ClassManifest (and its subtype Manifest) it became possible to write: def mkGenericArray[T: Manifest] = Array[T]() When compiling array instantiation, scalac would use a ClassManifest implicit parameter from scope (in this case, provided by a context bound) to remember Ts that have been passed to invoke mkGenericArray and use that information to instantiate arrays at runtime (via Java reflection). When redesigning manifests into what is now known as type tags, we decided to explore a notion of ArrayTags that would stand for abstract and pure array creators. Sure, ClassManifests were perfectly fine for this job, but they did too much - technically speaking, one doesn't necessarily need a java.lang.Class to create an array. Depending on a platform, e.g. within JavaScript runtime, one would want to use a different mechanism. As tempting as this idea was, it has also proven to be problematic. First, it created an extra abstraction inside the compiler. Along with class tags and type tags, we had a third flavor of tags - array tags. This has threaded the additional complexity though implicits and typers. Second, consequently, when redesigning tags multiple times over the course of Scala 2.10.0 development, we had to carry this extra abstraction with us, which exacerbated the overall feeling towards array tags. Finally, array tags didn't fit into the naming scheme we had for tags. Both class tags and type tags sound logical, because, they are descriptors for the things they are supposed to tag, according to their names. However array tags are the odd ones, because they don't actually tag any arrays. As funny as it might sound, the naming problem was the last straw that made us do away with the array tags. Hence this commit.
| * | | | backward compatibility bridgesEugene Burmako2012-06-082-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | More information can be found here: https://groups.google.com/group/scala-internals/msg/138efc5476751269
| * | | | Introduces scala-reflect.jarEugene Burmako2012-06-08138-33/+347
| | | | |
| * | | | Fixes SI-4909 and SI-5763Vlad Ureche2012-06-0819-83/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Finally, -sourcepath is split into: -Ysourcepath - for the library bootstrapping -doc-source-path - for scaladoc links to source code (squished the resident compiler test fix into this commit) Review by @jsuereth.