summaryrefslogtreecommitdiff
path: root/test/files/jvm
Commit message (Collapse)AuthorAgeFilesLines
* Fix race condition in scala-concurrent-tck testPhilipp Haller2012-02-191-1/+1
|
* Disable execution context and futures implementation in the default package.Aleksandar Prokopec2012-02-163-409/+19
| | | | | | | Fixed some tests so that they work now. The Transactions.scala test was failing when defined in scala.concurrent package, reporting that type `_$1` is defined twice. Until we figure out the reason for this, the package name in that test is renamed.
* Merge branch 'master' into execution-contextAleksandar Prokopec2012-02-162-5/+23
|\ | | | | | | | | Conflicts: src/library/scala/package.scala
| * Apply the fix for si-5293 to hash maps.Aleksandar Prokopec2012-02-151-4/+4
| | | | | | | | This fix was previously only applied to hash sets.
| * Add tests for parallel Ctrie.Aleksandar Prokopec2012-02-032-0/+9
| | | | | | | | Changed parameters in some tests to speed them up.
| * Incorporate Ctrie into standard library.Aleksandar Prokopec2012-02-022-1/+10
| | | | | | | | Implemented Ctrie serialization. Improved hashcode computation.
* | Merge branch 'master' into execution-contextVojin Jovanovic2012-01-252-3/+12
|\|
| * Preserve attribute order in inline XMLSzabolcs Berecz2012-01-141-2/+2
| |
| * Merge branch 'master' into issue/4147aleksandar2012-01-121-1/+1
| |\ | | | | | | | | | | | | Conflicts: .gitignore
| * | Add mutable tree sets to the standard library.aleksandar2012-01-122-1/+10
| | | | | | | | | | | | | | | | | | | | | This implementation is based on AVL trees. The current implementation is contributed by Lucien Pereira. Fixes #4147.
* | | Migrate akka promises. Changes to some of the interfaces.aleksandar2012-01-131-7/+5
| | |
* | | Port of akka Future implementation in progress.aleksandar2012-01-121-1/+14
| | |
* | | Refactor await calls for awaitable objects to ready and result calls.aleksandar2012-01-121-37/+49
| | |
* | | Merge branch 'master' into execution-contextVojin Jovanovic2012-01-093-6/+6
|\ \ \ | | |/ | |/|
| * | Fixed equality and string representation of xml attributes with null valueSzabolcs Berecz2012-01-071-1/+1
| |/ | | | | | | | | | | | | | | | | 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.
| * Merge remote-tracking branches 'axel22/issue/5293' and ↵Paul Phillips2011-12-191-1/+1
| |\ | | | | | | | | | 'jsuereth/fix-5053-view-unzip' into develop
| | * Batch files no longer swallow exit codesEugene Burmako2011-12-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Usually scripts like scala.bat and scalac.bat correctly propagate exit codes from underlying Java invocations. However, if you run these scripts as follows: "cmd /c scala ...", then errorlevel gets swallowed. This simple patch fixes the aforementioned problem. Fixes SI-5295, no review.
| * | Fix #5293 - changed the way hashcode is improved in hash sets.aleksandar2011-12-191-4/+4
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The hash code is further improved by using a special value in the hash sets called a `seed`. For sequential hash tables, this value depends on the size of the hash table. It determines the number of bits the hashcode should be rotated. This ensures that hash tables with different sizes use different bits to compute the position of the element. This way traversing the elements of the source hash table will yield them in the order where they had similar hashcodes (and hence, positions) in the source table, but different ones in the destination table. Ideally, in the future we want to be able to have a family of hash functions and assign a different hash function from that family to each hash table instance. That would statistically almost completely eliminate the possibility that the hash table element traversal causes excessive collisions. I should probably @mention extempore here.
* | Make base TCK more uniform with Akka TCKPhilipp Haller2011-12-131-3/+4
| |
* | Add test for recover to Akka TCKPhilipp Haller2011-12-132-4/+25
| |
* | Force output of exception in assert. Add tests for recover.Philipp Haller2011-12-131-2/+33
| |
* | Add tests for blocking/await to Akka version of the TCKPhilipp Haller2011-12-131-6/+37
| |
* | Merge branch 'execution-context' of github.com:phaller/scala into ↵aleksandar2011-12-131-0/+338
|\ \ | | | | | | | | | execution-context
| * | Add Akka version of Futures TCK.Philipp Haller2011-12-131-0/+338
| | |
* | | Change promise method signature.aleksandar2011-12-131-1/+1
|/ /
* | Add test cases for blocking. Fix in the failed projection.aleksandar2011-12-131-3/+27
| |
* | Rename block->await. Add more tck test cases.aleksandar2011-12-131-8/+87
| |
* | Add stubs for future combinator tests.Philipp Haller2011-12-131-1/+67
| |
* | Fix default.ExecutionContextImpl.promise. Add promise test.Philipp Haller2011-12-131-1/+24
| |
* | Adding the tck test file.aleksandar2011-12-121-0/+166
| |
* | Merge branch 'execution-context' of github.com:phaller/scala into ↵aleksandar2011-12-121-8/+7
|\ \ | | | | | | | | | | | | | | | | | | execution-context Conflicts: test/files/jvm/concurrent-future.scala
| * | Fix future testsPhilipp Haller2011-12-091-5/+5
| | |
* | | Syntax changes for the scala.concurrent package and some cleanup.aleksandar2011-12-121-5/+10
|/ / | | | | | | | | | | | | | | | | | | block on { } is now changed to: block(timeout) { }
* / Add tests for future callbacksPhilipp Haller2011-12-072-0/+134
|/
* Delegate to Java's implementation of signum for Long and Int.Ismael Juma2011-12-031-0/+15
| | | | | | | | The Java implementation is faster as it doesn't have branches. java.lang.Math includes implementations of signum for Double and Float, but I didn't change the ones in scala.math because there is a difference on how negative zero is handled.
* Make partest work with spaces in the path (from...Stefan Zeiger2011-11-221-4/+4
| | | | | | | | | | | | | | Make partest work with spaces in the path (from batch script and ant task). - The 'partest' ant task gets a new 'compilerargs' element for scalac - options (like in scalacfork and javac). Fixed argument list handling - in partest task. Further improvements to argument list handling for - all ant tasks. Fixed argument list handling in DirectTest (used by - partest shell scripts) Fixed path handling in several test cases. Closes SI-622. Review by phaller.
* More repl work.Paul Phillips2011-11-041-1/+1
| | | | | | | | | Hardened the repl against a bunch of erroneous conditions. Added a :reset command which causes the repl to forget everything you have told it. Added classloader tracing when repl tracing is enabled. :reset is not that useful in its current form but it's the precursor to something more interesting. No review.
* Begone t1737...Hubert Plociniczak2011-11-0233-200/+200
|
* Added *.log and build/ to gitignore so partest/...Josh Suereth2011-11-232-4/+4
| | | | | | | Added *.log and build/ to gitignore so partest/ant artifacts don't show up in our commit messages. Also fixed whitespace issues arising from the filter-branch history rewrite for git move.
* Moved meta annotations to annotation.meta, plus.Paul Phillips2011-10-101-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | It took me a long time to find a trivial error while adjusting the annotation packages, so I spent even longer trying to make sure next time it would take me less time. It's the usual business of eliminating duplication and unnecessary indirection. Behavioral note: there was no consistency or deducible reasoning regarding when annotation checks would be performed against the typeSymbol directly (thus excluding annotation subclasses) or when they would do a subclass check. I saw no reason it shouldn't always be a subclass check; if the annotation isn't supposed to be subclassed it should be final, and if it is, then the subclasses had probably better not stop exhibiting the behavior of the base class. Example: this now draws deprecated warnings, but did not before. class bippy extends deprecated("hi mom", "burma shave") @bippy def f = 5 (The deprecation message isn't printed so we're not there yet, but closer.) There is some new internal documentation on annotations, sadly lacking in my famous ascii diagrams, and some new conveniences. Review by rytz.
* Restores XML entity fix.Paul Phillips2011-10-042-0/+18
| | | | | | Did something eat some whitespace? I don't know. This is almost the same commit as r25783, but with different whitespace. No review.
* Revert "Fix for XML entity bug."Paul Phillips2011-10-042-18/+0
| | | | | | 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.
* Fix for XML entity bug.Paul Phillips2011-10-042-0/+18
| | | | | | | | | | | | 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.
* Repairing bitrot with serialization.Paul Phillips2011-10-031-12/+5
| | | | | | | | 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.
* Selective dealiasing when printing errors.Paul Phillips2011-10-031-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *** 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-011-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.)
* Renamed tests named bugXXX to tXXX, no review.Paul Phillips2011-08-247-1/+1
|
* Removing the code which has been deprecated sin...Paul Phillips2011-08-157-29/+11
| | | | | | | Removing the code which has been deprecated since 2.8.0. Contributed by Simon Ochsenreither, although deleting code is such fun one hesitates to call it a contribution. Still, we will. Closes SI-4860, no review.
* Fixing all the tests and source which still use...Paul Phillips2011-08-082-2/+2
| | | | | | | Fixing all the tests and source which still use the old for comprehension syntax with vals where there are no vals and no vals where there are vals. No review.
* Fixes SI-4759Philipp Haller2011-07-071-0/+47
|