summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Disabled "not found" suggestions.Paul Phillips2012-01-263-5/+5
| | | | | The benchmarks charts are confusing me and I want to rule it out as a problem by not having it exist for a while.
* Fix for recently induced -optimise crasher.Paul Phillips2012-01-262-0/+19
| | | | | | "Induced" but not in my estimation "caused". Would like to understand why the enclosed test case crashes under -optimise without this change to AddInterfaces.
*-. Merge remote-tracking branches 'axel22/issue/5374' and 'axel22/issue/5375' ↵Paul Phillips2012-01-254-10/+67
|\ \ | | | | | | | | | into develop
| | * Fix for SI-5375.aleksandar2012-01-252-0/+20
| | | | | | | | | | | | | | | Changed CompositeThrowable to inherit Exception instead of Throwable. A few minor fixes for the jdk1.5 parallel collection tasks.
| * | Refine fix for SI-5374 - make list deserialization backward-compatible.aleksandar2012-01-252-10/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is done by structurally serializing list nodes, but prepending a special `ListSerializationStart` symbol ahead of the list. If this symbol is not in the object input stream, the deserialization reverts to the old mode. Note there is not much to be done for list buffers - their serialization was broken before, so legacy serialized list buffers are no longer deserializable. However, their serialVersionUID was changed to reflect this, so deserializing a legacy list buffer should fail fast.
* | | Merge remote-tracking branch 'odersky/topic/reflect' into developPaul Phillips2012-01-251-8/+8
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/compiler/scala/reflect/internal/Symbols.scala src/compiler/scala/reflect/internal/Types.scala src/compiler/scala/tools/nsc/typechecker/Typers.scala src/library/scala/reflect/api/Trees.scala
| * | | Making reflection thread-safe.Martin Odersky2012-01-251-8/+8
| | | | | | | | | | | | | | | | The idea is that all operations that need to be synchronized are overriden in classes reflect.runtime.Synchronized*. Sometimes this applies to operations defined in SymbolTable, which can be directly overridden. Sometimes it is more convenient to generate SynchronizedClazz subclasses of SymbolTable classes Clazz. In the latter case, all instance creation must go over factory methods that can be overridden in the Synchronized traits.
* | | | Use context for buffering errors that cannot/shouldn't be reported in the ↵Hubert Plociniczak2012-01-259-31/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | given moment (instead of throwing type errors). This avoids previous problems where we were creating fake error trees in some incorrect places like in type completers in Namers etc. Implicits relied heavily on type errors being thrown but performance should stay the same due to some explicit checks/returns. Some of the problems involved how ambiguous error messages were collected/reported because it was very random (similarly for divergent implicits). This should be more explicit now. Reduced the number of unnecessary cyclic references being thrown (apart from those in Symbols/Types which don't have a context and need to stay for now as is). Review by @paulp, @odersky.
* | | | Cleaner range counting.Paul Phillips2012-01-242-0/+4233
| |_|/ |/| | | | | | | | Plus a big unit test I had lying around.
| | |
| \ \
| \ \
| \ \
*---. \ \ Merge remote-tracking branches 'axel22/issue/5374', 'axel22/issue/5262', ↵Paul Phillips2012-01-238-12/+140
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | 'scalamacros/topic/macros' and 'kmizu/pullrequest-fix-SI-4835' into develop
| | | * | | Add test case for SI-4835 (https://issues.scala-lang.org/browse/SI-4835)Kota Mizushima2012-01-232-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test case only confirm that StreamIterator's lazyiness is not broken. Test case about memory consumption could be created. However, such a test cause a greatly increased time of test.
| | * | | | Temporarily disabling debug traces in macro testsEugene Burmako2012-01-232-12/+22
| | | | | |
| * | | | | Test files for SI-5262, which was fixed by SI-5374.aleksandar2012-01-232-0/+28
| | |_|_|/ | |/| | |
| * | | | Fix for SI-5374.aleksandar2012-01-232-0/+45
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | Lists are now serialized so that the entire list structure is serialized, including list nodes. This is different from the previous behaviour where only the elements were serialized. List buffers are now optimized so that only the elements of the list are serialized, and not the nodes of the internally maintained list.
* / | | Figured out the "$class$1" problem.Paul Phillips2012-01-233-0/+22
|/ / / | | | | | | | | | | | | | | | | | | In lambda lift traits are renamed independently of their implementation classes, leading in the case of a method-defined trait to an interface called A$1 and an impl class called A$class$1 rather than A$1$class. This is now remedied.
* | | Merge remote-tracking branches 'retronym/ticket/5072' and ↵Paul Phillips2012-01-211-0/+26
|\ \ \ | | | | | | | | | | | | 'odersky/topic/t5120' into develop
| * | | Fix for problem in SBT that was caused by the too severe fix of type ↵Martin Odersky2012-01-211-0/+26
| | |/ | |/| | | | | | | soundness problem t5120.
* | | A better REPL context classloader.Jason Zaugg2012-01-212-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, when using ThreadStoppingLineManager (ie, not using -Yrepl-sync), the parent classloader was installed as the thread context classloader. On my machine, this was null. Now, the behaviour is consistent with the thread-free line manager, and allows access to classes defined during the REPL session. Closes SI-5072
* | | Test case for already closed SI-4271.Paul Phillips2012-01-202-0/+22
| | |
* | | Test case for already closed SI-4176.Paul Phillips2012-01-201-0/+6
| | |
| | |
| \ \
*-. \ \ Merge remote-tracking branches 'cvogt/windowsExitCodeFix' and ↵Paul Phillips2012-01-202-0/+13
|\ \ \ \ | | |/ / | |/| / | |_|/ |/| | 'szabolcsberecz/SI-5066' into develop
| | * Closes SI-5066Szabolcs Berecz2012-01-202-0/+13
| | | | | | | | | | | | | | | readLine("%s", "prompt") printed "WrappedArray(prompt)" readLine("%s%s", "pro", "mpt") threw a MissingFormatArgumentException
* | | Merge remote-tracking branch 'kepler/topic/macros' into developPaul Phillips2012-01-201-4/+2
|\ \ \
| * | | Quick fix for one of the macro testsEugene Burmako2012-01-201-4/+2
| | | |
* | | | Merge remote-tracking branch 'kepler/topic/macros' into developPaul Phillips2012-01-199-1/+316
|\| | | | |/ / |/| |
| * | Progress with macrosEugene Burmako2012-01-209-1/+316
| |/ | | | | | | | | | | | | | | | | | | | | | | A short recap: * Macro expansion now works finely for instance macro invocations * Macros are now hidden behind -Xmacros * Bodies of macros now have "import _context._" in their preamble * Macros are now loaded from classpath, much like regular libraries * Macros can now override methods (in that case macro expansion does not crash if macro is not found, it just falls back to super) Review by @odersky.
* / Improved performance of TraversableLike.dropWhile, which now stops ↵Christopher Vogt2012-01-201-0/+15
|/ | | | | | re-evaluating the predicate after it once evaluated to true. Closes SI-5387.
* Merge remote-tracking branch 'dcsobral/interpolationFix'Paul Phillips2012-01-185-0/+16
|\
| * Fix check for number of argumentsDaniel C. Sobral2012-01-175-0/+16
| | | | | | | | | | | | | | Fix the test for number of arguments by passing all arguments instead of passing the argument list as a single argument. Add positive and negative tests for it.
* | Fixed a bug SI-5377 (https://issues.scala-lang.org/browse/SI-5377).Kota Mizushima2012-01-192-0/+65
| | | | | | | | Added test cases for SI-5377.
* | Revert "Fixing inliner visibility issue."Paul Phillips2012-01-173-15/+0
| | | | | | | | | | | | This reverts commit 2820770bffe2e7d180bccbcd7a3d83944b1dd8d6. Last minute change had unintended consequences.
* | Fixing inliner visibility issue.Paul Phillips2012-01-173-0/+15
| | | | | | | | | | | | | | Changes motivated by ICodeReader neglecting to utilize logic which exists in its superclass. Now you can enjoy empty package classes being inlined into other empty package classes. Closes SI-4925.
* | Merge branch 'specialized/hlist' of https://github.com/dragos/scala into developPaul Phillips2012-01-172-0/+31
|\ \ | |/ |/|
| * Make specialization pick up opportunities when the Iulian Dragos2012-01-172-0/+31
| | | | | | | | | | | | specialized method has additional (non-specialized) type parameters. This fix comes from Stefan's desire to specialize HLists (see corresponding test). review by @prokopec
* | Improved a cyclic reference error message.Paul Phillips2012-01-164-6/+42
| | | | | | | | | | "illegal cyclic reference involving value <import>" not so useful.
* | Less regressive package object fix.Paul Phillips2012-01-163-0/+20
| | | | | | | | At least I think so.
* | Merge remote-tracking branches 'odersky/pullrequest/interpolation' and ↵Paul Phillips2012-01-165-9/+44
|\ \ | |/ |/| | | 'magarciaEPFL/fasterInliner' into develop
| * A string interpolation implementation of SIP-11.Martin Odersky2012-01-165-9/+44
| | | | | | | | This is the complete implementation of SIP-11, in its version of 15-Jan-2012. For now, the interpolations are enabled only under the -Xexperimental flag.
* | Merge remote-tracking branch 'origin/develop'Paul Phillips2012-01-154-13/+29
|\ \
| | \
| | \
| | \
| | \
| *---. | Merge remote-tracking branches 'szabolcsberecz/xml-attribute-order', ↵Paul Phillips2012-01-154-13/+29
| |\ \ \| | | | | | | | | | | | | | | | 'szabolcsberecz/pathsettings-jar-location-fix', 'dcsobral/issue/5371' and 'dcsobral/issue/5370' into develop
| | * | | Preserve attribute order in inline XMLSzabolcs Berecz2012-01-144-13/+29
| | |/ /
* | / / Fixing checkfile.Paul Phillips2012-01-151-1/+1
|/ / /
* | | Fix for raw types issue found in the IDE.Paul Phillips2012-01-142-0/+10
| | |
* | | Test case backing spec.Paul Phillips2012-01-143-0/+39
| | | | | | | | | | | | Added code from SLS 2.0.2.
* | | Symbols making friends with Polly Morphism.Paul Phillips2012-01-141-4/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since I have established (no small effort, this) that there is no need for certain important flags to be mutable for the entire lifetime of a symbol, I have codified this knowledge by moving it out of the flags entirely and into the inheritance hierarchy where its constant nature can find true happiness. AliasTypeSymbol ... it's an alias (forever!) AbstractTypeSymbol ... it's an abstract type (forever!) The only time DEFERRED is inspected is if the generic creation function is called (e.g. "newTypeSymbol", not "newAliasType") in which case the presence of the flag is used to determine which symbol to create. This is mostly for legacy support. Certain symbols were being created inconsistently with the others. Now every symbol is created by invoking a creation method on the owner, with the exception of FreeVar. I changed the owner of those from RootClass to NoSymbol because there is no reason for them to pollute the symbol hierarchy at the root. The signature of cloneSymbolImpl is now def cloneSymbolImpl(owner: Symbol, newFlags: Long): Symbol There is an overload with the old signature which calls that one with no flags. With this step, every symbol creation in trunk is performed with knowledge of the initial flags, opening the door to many optimizations in the Symbol and Type logic, not to mention boosting my sanity by at least five sanity points.
* | Fix for crasher in uncurry.Paul Phillips2012-01-131-0/+8
| | | | | | | | A small dose of packedType closes SI-4869.
* | Fix for spurious implicit ambiguity with package objects.Paul Phillips2012-01-132-0/+16
| | | | | | | | Closes SI-3999. Review by @odersky.
* | Fixed overloading in package objects.Paul Phillips2012-01-133-0/+79
|/ | | | | | | | | | | | | Implementing a warning for the behavior described in SI-1987 gave me enough of a foot in the door to fix it rather than warning about it. I suppose this is a variation of rubber ducky debugging. % scalac -Ylog:typer test/files/run/t1987.scala [log typer] !!! Overloaded package object member resolved incorrectly. Discarded: def duh(n: Double): Unit Using: val duh: (n: Double)Unit <and> (n: Long)Unit Review by @odersky.
* Merge remote-tracking branch 'szabolcsberecz/xml-attribute-fixes' into developPaul Phillips2012-01-122-20/+39
|\
| * Cleanup after "Fixed equality and string representation of xml attributes ↵Szabolcs Berecz2012-01-122-20/+39
| | | | | | | | | | | | | | | | | | | | with null value" This commit reverts the following two commits: 5f2568e36b87d183fd4e4442d5c304db628846c4 - "Revert "Accept prefixed xml attributes with null value" b00002f9049c034510438881b4a4449d73fe2f54 - "Disabling some scaladoc tests." and fixes a scaladoc test broken by: 4787f883604d1344257c0b40c15790c3dde477f2 - "Fixed equality and string representation of xml attributes with null value"