summaryrefslogtreecommitdiff
path: root/test/files/jvm
Commit message (Collapse)AuthorAgeFilesLines
* Fixes SI-4759Philipp Haller2011-07-071-0/+47
|
* Don't infer anonymous classes.Paul Phillips2011-06-271-1/+1
| | | | | | | | | | | | | | possible, just far enough to avoid all kinds of undesirable consequences which accompany the preservation of too much type information. (The problems are akin to inferring the singleton type too freely.) // Example of code which did not compile, but now does class A class B[T <: A](cons: T) object C extends B(new A {}) Closes #4110, #3048. I already ran this by moors, so review by odersky.
* The eagerly awaited companion commit to r23622,...Paul Phillips2011-06-011-2/+2
| | | | | | | | | | | | | | | The eagerly awaited companion commit to r23622, the surprise hit of last winter. Singletons now have the singleton type inferred in monomorphic contexts as well. In english: scala> object X defined module X scala> def f = X f: X.type Wait, that's not english. English review by moors.
* Each of the three commits preceding this are to...Paul Phillips2011-05-291-0/+158
| | | | | | | | | | | Each of the three commits preceding this are to correct regressions which would have been caught by the interpreter test and never checked in in the first place, were it not disabled. The windows tax claims another victim. Or three victims. Re-enabled the interpreter test. No way for me to know if it will pass everywhere without trying it. No review.
* Fixing an interpreter output regression and upd...Paul Phillips2011-05-291-1/+1
| | | | | | Fixing an interpreter output regression and updated repl debugging and tracing code. No review.
* Removes SUnit (long deprecated!) from the stand...Paul Phillips2011-05-1917-516/+463
| | | | | | | | | | | | Removes SUnit (long deprecated!) from the standard library. the relatively small number of partest tests in Scala's suite that were still using SUnit now either just use regular asserts, or they print stuff that partest checks with a .check file. Also fixed some bad indentation, removed ancient useless-looking commented-out code, etc. Contributed by Seth Tisue (way to go seth) no review.
* Suppress unwanted noise generated by javac when...Paul Phillips2011-05-192-6/+3
| | | | | | | | | | | | | Suppress unwanted noise generated by javac when compiling test case for #1263. formerly the test case caused this to be printed: Note: test/files/pos/t1263/Test.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. we suppress this using @SuppressWarnings. Contributed by Seth Tisue, no review.
* Temporarily moving interpreter.scala to pending.Martin Odersky2011-04-251-158/+0
|
* Of late the test which fires up the window serv...Paul Phillips2011-04-142-42/+0
| | | | | | | | Of late the test which fires up the window server, which has already been the source of undue quantities of inconvenience, has taken to hanging indefinitely when I run the test suite on a remote machine. Rope at end, goodbye test, no review.
* This time, fixed #4283. no review.Iulian Dragos2011-04-143-0/+14
|
* Revert "Closes #4283.Iulian Dragos2011-04-133-14/+0
|
* Closes #4283. no review.Iulian Dragos2011-04-133-0/+14
|
* make natives test run on win64. no reviewLukas Rytz2011-04-052-0/+3
|
* Enhancing the repl-testing code by turning it i...Paul Phillips2011-04-051-100/+239
| | | | | | | | | | Enhancing the repl-testing code by turning it into a transcript producing machine. "Here's some code." "Here's a transcript!" "Good day to you, sir!" "No, good day to YOU!" These changes are awesome. Look at the checkfile diffs for god's sake, they'll make you weep with joy. No review.
* Closes #3838. Review by prokopec.Philipp Haller2011-03-152-0/+16
|
* Re-enabling the disabled signature test along w...Paul Phillips2011-03-064-1/+42
| | | | | | | Re-enabling the disabled signature test along with changes which allow it to pass. Closes #4238 again, no review. (But would anyone like to expand the signature tests? Great idea, extempore!)
* Some naming clarifications and a test rewrite.Paul Phillips2011-03-061-7/+22
|
* Reverting some recent signature code and tempor...Paul Phillips2011-03-043-41/+0
| | | | | | | Reverting some recent signature code and temporarily disabling a test so I can work this out without shattering the tranquility of the build. No review.
* Break 9 tests, fix 9 tests, realize you broke t...Paul Phillips2011-02-281-11/+6
| | | | | | | Break 9 tests, fix 9 tests, realize you broke the test you checked in between +9 and -9. Fix that and generalize the repl tests a little. I think we're all the way there. No review.
* Renamed Application to App.Martin Odersky2011-02-219-9/+9
|
* Revert "Added missing string prefixes for names...Aleksandar Pokopec2011-02-151-14/+14
| | | | | | | | Revert "Added missing string prefixes for names of map and set collection classes." and related commits. No review.
* Another fix for a broken test case involving ne...Aleksandar Pokopec2011-02-151-2/+2
| | | | | | | | Another fix for a broken test case involving new set and map string reps. No review.
* Fixing tests depending on map and set string re...Aleksandar Pokopec2011-02-141-12/+12
| | | | | Fixing tests depending on map and set string representations. No review.
* After discovering #3376 was fixed I gave in and...Paul Phillips2011-02-041-35/+7
| | | | | | | | After discovering #3376 was fixed I gave in and tried to write a test. Now that the fiddling is over you can write repl tests without creating 5000 streams and settings. Look at test/files/run/bug3376.scala or jvm/interpreter.scala to see. Test case closes #3376, no review.
* I keep seeing huge simplifications available in...Paul Phillips2011-02-011-3/+3
| | | | | | | | | I keep seeing huge simplifications available in the repl. Lot of interesting features have come to town since it was first conceived. In this commit I give the internal names some tips on aesthetics, and put each line in its own package like civilized artificial constructs. No review.
* Merge branch 'work'Aleksandar Pokopec2011-01-261-2/+2
| | | | | | Conflicts: src/library/scala/concurrent/SyncVar.scala
* The empty string commit made me hungry to actua...Paul Phillips2011-01-211-2/+2
| | | | | | | The empty string commit made me hungry to actually know what's in stuff. Now it prints quotes around a string if it's empty or if either the first or last character is whitespace. No review.
* Deleted duplicate test which must have been a r...Paul Phillips2011-01-132-59/+0
| | | | | | Deleted duplicate test which must have been a real monkey wrench. No review.
* Some fixes for partest issues.Paul Phillips2011-01-121-2/+2
| | | | | | | | prejudice and puts the new process code to work instead. There are still a couple bugs on my short term partest list. If this commit causes some weird issue which only arises on virtualized windows you can expect to hear from me next by postcard from st. lucia. No review.
* disabled test cf-attributes.scalamichelou2010-12-312-196/+0
|
* fixed issue with EnclosingMethod attribute.michelou2010-12-302-0/+196
| | | | | | The above issue was made explicit using the dx tool for the Android SDK to convert Java bytecode to Dalvik bytecode.
* When was the last time -Xcheckinit was run? It ...Paul Phillips2010-12-114-4/+19
| | | | | | | | | | When was the last time -Xcheckinit was run? It must have been a long time. All these changes are to address bugs revealed by -Xcheckinit, mostly in test cases, some in the compiler. I'm guessing the partest -Xcheckinit runs are hanging the first time they run into a failure, so if it starts "working" again after this commit don't get too confident. No review.
* Made parallel collections serializable.Aleksandar Pokopec2010-12-092-1/+91
| | | | | No review.
* Added uniqueness annotations. Review by rytz.Philipp Haller2010-12-071-2/+2
|
* Deprecated the @serializable annotation, introd...Lukas Rytz2010-11-301-24/+7
| | | | | | | | | | | | | | | | | | | Deprecated the @serializable annotation, introduce a new trait "scala.Serializable" which has to be extended instead (cross-platform). Known issues: - Companion objects of serializable classes (including case classes) are automatically made serializable. However, they don't extend "Serializable" statically because of the known difficulty (should be done before typing, but hard). - Writing "case class C() extends Serializable" gives "error: trait Serializable is inherited twice" - Functions are serializable, but don't extend Serializable dynamically (could be fixed by making FunctionN Serializable - shouldn't we?) Note that @SerialVersionUID continues to be an annotation; it generates a static field, which is not possible otherwise in scala. Review by dragos, extempore. Question to dragos: in JavaPlatform.isMaybeBoxed, why is there a test for "JavaSerializableClass"? Is that correct?
* "I invite everyone to change this rule, and obs...Paul Phillips2010-11-292-4/+5
| | | | | | | | | | | | | | | | | | | | | "I invite everyone to change this rule, and observe what breaks!" This much beloved comment from #1208 has been on my radar for two years. The worm has turned. Closes #1208. The inferred type of an object is now Foo.type instead of "object Foo". What once was this: scala> val x: Map[Int, Singleton] = Map(1 -> None) <console>:5: error: type mismatch; found : (Int, object None) required: (Int, Singleton) Now exudes a pleasing aura of workingness: scala> val x: Map[Int, Singleton] = Map(1 -> None) x: Map[Int,Singleton] = Map(1 -> None) No review.
* Further fixes some issues for #3621.Aleksandar Pokopec2010-11-253-1/+4
| | | | | Review by Rytz.
* Fix for #3621.Aleksandar Pokopec2010-11-244-0/+49
| | | | | | | Added varargs annotation. Review by Rytz.
* Moved failing test to pending until I figure ou...Iulian Dragos2010-11-142-399/+0
| | | | | | Moved failing test to pending until I figure out how hudson is running on chara
* Use partest's java and javac command in the jav...Iulian Dragos2010-11-131-9/+2
| | | | | Use partest's java and javac command in the javasigs test. no review.
* Fix InnerClasses attribute: anonymous classes d...Iulian Dragos2010-11-132-0/+406
| | | | | | | | Fix InnerClasses attribute: anonymous classes don't have an outer name. EnclosingMethod is correctly generated. Fixed isAnonymousClass definition. Updated test that depends on anonymous inner class names. Closes (again) #3249, references #2749. review by odersky,extempore.
* Fixes #3878. No review.Aleksandar Pokopec2010-11-102-1/+10
|
* A test output changed. No review.Aleksandar Pokopec2010-11-081-2/+2
|
* Added separate bitmaps for private and transien...Hubert Plociniczak2010-11-022-0/+34
| | | | | | | | | | Added separate bitmaps for private and transient lazy vals. Closes #3038, #1573. Review by dragos. I had to fix a couple of initialization issues that checkinit forced me to do and that weren't a problem before because the bitmap was serialized even for @transitive. For that I needed to change the setters in checkinit so that they also update the bitmap.
* Removed race from test for #3356. No reviewPhilipp Haller2010-11-012-1/+4
|
* Two hashcode-related failing tests fixed.Aleksandar Pokopec2010-10-282-4/+4
| | | | | No review.
* As hash codes change, so do the tests - output ...Aleksandar Pokopec2010-10-202-2/+3
| | | | | As hash codes change, so do the tests - output order for a HashMap is different now. No review.
* Some cleanups in the compiler source.Paul Phillips2010-10-111-1/+1
| | | | | | | eliminated the import of ambiguously named classes from e.g. collection.mutable, obeyed a todo in the parser regarding dropping lbracket from statement starting tokens. No review.
* Sorting through the tests in pending from oldes...Paul Phillips2010-10-022-0/+22
| | | | | | | | | | | | | | | | | Sorting through the tests in pending from oldest to newest because I don't believe in having useless appendages. The verdict on the oldest fifteen tests is: 15/15 are fixed. Many were already in files under a different name. I moved a few and deleted the rest. Fun fact of the day: apparently there was a time when to call into java varargs with no arguments you might have to write something like: getClass().getMethod("getCount", Array[java.lang.Class[T] forSome { type T }]()) On this basis I retract any complaints I've ever had about anything. There is one question mark outlined in pos/testCoercionThis.scala, a file formerly called pos/moors.scala and therefore... review by moors.
* Another attempt for #1591.Hubert Plociniczak2010-10-011-0/+26
|