summaryrefslogtreecommitdiff
path: root/src/library
Commit message (Collapse)AuthorAgeFilesLines
* Set fields in immutable hash maps and hash sets to vals.aleksandar2012-01-263-14/+22
| | | | | | | | | | This is part of an effort to make the immutable collections (more) thread safe. The `::` still has non-final member fields for head and tail, but there is not much that can be done right now about that, since these fields are used by list buffers. Tried writing a test with unsafe initialization, but could not invent a scenario which actually fails, at least on the JDK6.
*-. Merge remote-tracking branches 'axel22/issue/5374' and 'axel22/issue/5375' ↵Paul Phillips2012-01-255-31/+83
|\ \ | | | | | | | | | into develop
| | * Fix for SI-5375.aleksandar2012-01-253-27/+35
| | | | | | | | | | | | | | | 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-4/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-255-59/+111
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | More work on making reflection thread-safe.Martin Odersky2012-01-251-2/+2
| | | |
| * | | Making reflection thread-safe.Martin Odersky2012-01-252-27/+16
| | | | | | | | | | | | | | | | 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.
| * | | Cleanup and better documentation of reflect.api.Symbols traitMartin Odersky2012-01-251-28/+63
| | | |
| * | | Added doc comments to Names trait.Martin Odersky2012-01-251-3/+30
| | | |
| | | |
| \ \ \
| \ \ \
| \ \ \
*---. \ \ \ Merge remote-tracking branches 'hubertp/topic/errors', ↵Paul Phillips2012-01-252-5/+6
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | 'scalamacros/topic/antbuildexception', 'leifwickland/SI-5405' and 'axel22/issue/5377' into develop
| | | * | | | Update for fix for SI-5377.aleksandar2012-01-241-2/+3
| | | | |_|/ | | | |/| | | | | | | | | | | | | | Converting the buffer to another arraybuffer instead of to a list.
| | * / | | SI-5405: Fix documentation error in scala.math.BigIntLeif Wickland2012-01-241-3/+3
| | |/ / /
* | / / / Use context for buffering errors that cannot/shouldn't be reported in the ↵Hubert Plociniczak2012-01-251-3/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-241-9/+27
|/ / / | | | | | | | | | Plus a big unit test I had lying around.
| | |
| \ \
| \ \
| \ \
*---. \ \ Merge remote-tracking branches 'axel22/issue/5374', 'axel22/issue/5262', ↵Paul Phillips2012-01-233-24/+53
|\ \ \ \ \ | | |_|_|/ | |/| | | | | | | | 'scalamacros/topic/macros' and 'kmizu/pullrequest-fix-SI-4835' into develop
| | | * | * Fixed SI-4835 (https://issues.scala-lang.org/browse/SI-4835).Kota Mizushima2012-01-231-2/+8
| |_|/ / |/| | |
| * | | Fix for SI-5374.aleksandar2012-01-232-22/+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.
| | |
| \ \
*-. \ \ Merge remote-tracking branches 'cvogt/windowsExitCodeFix' and ↵Paul Phillips2012-01-201-1/+1
|\ \ \ \ | |_|/ / |/| | / | | |/ | |/| 'szabolcsberecz/SI-5066' into develop
| | * Closes SI-5066Szabolcs Berecz2012-01-201-1/+1
| | | | | | | | | | | | | | | 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-194-9/+17
|\ \ \ | |/ / |/| |
| * | Progress with macrosEugene Burmako2012-01-204-9/+17
| |/ | | | | | | | | | | | | | | | | | | | | | | 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-1/+1
|/ | | | | | re-evaluating the predicate after it once evaluated to true. Closes SI-5387.
* Merge remote-tracking branch 'dcsobral/interpolationFix'Paul Phillips2012-01-181-2/+2
|\
| * Fix check for number of argumentsDaniel C. Sobral2012-01-171-2/+2
| | | | | | | | | | | | | | 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.
* | Merge remote-tracking branches 'kmizu/pull-request-fix-SI-5377' and ↵Paul Phillips2012-01-181-1/+40
|\ \ | | | | | | | | | 'kepler/topic/showraw'
| * | Upgraded the implementation of showRawEugene Burmako2012-01-171-1/+40
| | | | | | | | | | | | | | | | | | Now showRaw no longer significantly lags behind -Yreify-copypaste. Didn't put very much effort into it, since quite soon LiftCode will become a macro and we'll be able to reuse it in RawTreePrinter.
* | | Fixed a bug SI-5377 (https://issues.scala-lang.org/browse/SI-5377).Kota Mizushima2012-01-191-1/+1
| |/ |/| | | | | Added test cases for SI-5377.
| |
| \
*-. \ Merge remote-tracking branches 'odersky/pullrequest/interpolation' and ↵Paul Phillips2012-01-161-0/+191
|\ \ \ | | | | | | | | | | | | 'magarciaEPFL/fasterInliner' into develop
| * | | A string interpolation implementation of SIP-11.Martin Odersky2012-01-161-0/+191
| | | | | | | | | | | | | | | | 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.
* | | | Make AnyValManifest not a sealed class.Grzegorz Kossakowski2012-01-151-1/+1
| |/ / |/| | | | | | | | | | | | | | | | | | | | Scala+GWT has a whole new hierarchy of Manifests that does not use reflection. Every type in new hierarchy is a subtype of a type from old hierarchy. Sealed modifier introduced in 2e92de4cd66532404081eec6b9e82c6f85b51434 breaks this scheme. Removing it so Scala+GWT can compile again.
| | |
| \ \
| \ \
| \ \
*---. \ \ Merge remote-tracking branches 'szabolcsberecz/xml-attribute-order', ↵Paul Phillips2012-01-155-3/+77
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | 'szabolcsberecz/pathsettings-jar-location-fix', 'dcsobral/issue/5371' and 'dcsobral/issue/5370' into develop
| | | * | Reword confusing explanationDaniel C. Sobral2012-01-141-7/+11
| | | | |
| | | * | Explain Function1 vs PartialFunctionDaniel C. Sobral2012-01-132-1/+35
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add an explanation in PartialFunction as to how it differs from Function1, with examples of what it can do that Function1 cannot. Make it explicit that calling apply may throw exceptions in both of them, even in the case where isDefinedAt returns true. Closes SI-5370.
| | * | Improve description of flatten, flatMapDaniel C. Sobral2012-01-133-2/+38
| |/ / | | | | | | | | | | | | | | | | | | Add examples and better explain the expected return type of the methods flatMap and flatten. Closes SI-5371.
* / / Toward the elimination of setInternalFlags.Paul Phillips2012-01-141-2/+2
|/ / | | | | | | | | | | Modifications in LiftCode to avoid upsetting the happy world upon which I am converging where flags change in an almost predictable fashion.
* | Removed some unsociable exception behavior.Paul Phillips2012-01-131-7/+0
| |
* | Merge remote-tracking branch 'szabolcsberecz/xml-attribute-fixes' into developPaul Phillips2012-01-121-6/+9
|\ \
| * | Cleanup after "Fixed equality and string representation of xml attributes ↵Szabolcs Berecz2012-01-121-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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"
| | |
| \ \
| \ \
| \ \
*---. \ \ Merge remote-tracking branches 'axel22/issue/4147', 'schmmd/codec' and ↵Paul Phillips2012-01-126-1/+422
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | 'soc/SI-4627' into develop
| | | * | Clean up standard/swing library by deprecating/moving code examplesSimon Ochsenreither2011-12-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Deprecate scala/xml/include/sax/Main.scala. Move scala/swing/test/* to docs/examples. Saves 160KB in scala-swing.jar. Fixes SI-4627.
| | * | | Added toString to Codec class (uses Codec.name).Michael Schmitz2012-01-091-0/+3
| | | | |
| * | | | Merge branch 'master' into issue/4147aleksandar2012-01-1226-82/+174
| |\ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | Conflicts: .gitignore
| * | | | Add mutable tree sets to the standard library.aleksandar2012-01-124-0/+418
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This implementation is based on AVL trees. The current implementation is contributed by Lucien Pereira. Fixes #4147.
* | | | | Traitified JavaConverters.Paul Phillips2012-01-101-1/+4
| | | | | | | | | | | | | | | | | | | | So it can be used as a mixin.
* | | | | Merge remote-tracking branch 'odersky/master'Paul Phillips2012-01-107-7/+7
|\ \ \ \ \
| * | | | | Fixing redundant type parameter in toIndexedSeq which causes suboptimal type ↵Martin Odersky2012-01-107-7/+7
| | |/ / / | |/| | | | | | | | | | | | | inference
* / | | | Revert "Accept prefixed xml attributes with null value"Paul Phillips2012-01-101-9/+6
|/ / / / | | | | | | | | | | | | | | | | This reverts commit 51089b34a7a535498dee42e6465d4d577d65b7d5. A scaladoc test is failing and I have no time to look at it.
| | | |
| \ \ \
| \ \ \
| \ \ \
*---. \ \ \ Merge remote-tracking branches 'odersky/master', 'odersky/topic/capturing' ↵Paul Phillips2012-01-095-11/+16
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | and 'szabolcsberecz/xml-attribute-fix'
| | | * | | | Accept prefixed xml attributes with null valueSzabolcs Berecz2012-01-071-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes makes PrefixedAttribute work the same way as UnprefixedAttribute with respect to null values: <t p:a={ null: String }/> is accepted and results in <t/>
| | | * | | | Fixed equality and string representation of xml attributes with null valueSzabolcs Berecz2012-01-074-5/+7
| | | | |_|/ | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this patch <t a={ null: String }/> was not equal to <t/> and it's string representation was "<t ></t>" instead of "<t></t>" This includes changing MetaData.normalize() so that it doesn't reverse the chain. On the downside, the iterate function in MetaData.normalize() is not tail-recursive now.