summaryrefslogtreecommitdiff
path: root/test/files/buildmanager
Commit message (Collapse)AuthorAgeFilesLines
* Use context for buffering errors that cannot/shouldn't be reported in the ↵Hubert Plociniczak2012-01-251-1/+0
| | | | | | | | 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.
* Updates for the ten tests I broke recently.Paul Phillips2011-11-081-2/+8
| | | | | Wow, ten tests, that's unexpected. No review.
* Begone t1737...Hubert Plociniczak2011-11-028-11/+11
|
* dependent methods types are now always enabledAdriaan Moors2011-10-202-0/+2
| | | | | | | | | | for now, left the old if(settings.YdepMethTpes.value) guards in comments removed *.flags containing -Ydependent-method-types also updated one check file with one fewer error no review
* no need to add an x field to everythingAdriaan Moors2011-10-201-8/+2
| | | | | | | | | | | however, it must be possible to inline Ensuring, ArrowAssoc methods renamed the public val x to something a little less intrusive fixed check file to reflect better error message (see! it wasn't that uncommon for people to write `foo.x` -- NEWS AT ELEVEN) no review
* Selective dealiasing when printing errors.Paul Phillips2011-10-0311-22/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *** 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.
* Since I don't want to commit anything "interest...Paul Phillips2011-05-012-4/+4
| | | | | | | | Since I don't want to commit anything "interesting" until we ship 2.9, a few uninteresting cleanups involving how types are printed, getting some debugging code in shape to prepare for the long winter ahead, etc. No review.
* I wrote a warning when nullary methods return U...Paul Phillips2011-04-282-2/+2
| | | | | | | | | | | | | | | I wrote a warning when nullary methods return Unit. I wimped out of including it in this patch because we had about 200 of them, and that's what is fixed in this patch. I will add the warning to some kind of "-Xlint" feature after 2.9. This is motivated at least partly by the resolution of #4506, which indicates the distinction between "def foo()" and "def foo" will continue to jab its pointy stick into our eyes, so I believe we have a minimal duty of at least following our own advice about what they mean and not making a semirandom choice as to whether a method has parens or not. Review by community.
* Renamed Application to App.Martin Odersky2011-02-211-1/+1
|
* Closes #3140, #4245. no reviewHubert Plociniczak2011-02-136-0/+27
|
* Closes #4215. review by oderskyHubert Plociniczak2011-02-083-0/+13
|
* Updated check file for namesdefault test.Iulian Dragos2011-01-191-2/+2
|
* Apparently my flailing attempts to make things ...Paul Phillips2011-01-071-2/+2
| | | | | | | | | | | | | | | | | Apparently my flailing attempts to make things faster earned me the pity of Tiark, who sent this monster patch which he probably dashed off before the appetizers had been cleared away. All the steak is his but I threw in a little sizzle so I could feel like a part of things. It knocks about a bazillion miniseconds off the time spent in implicit search. This is the same patch martin already endorsed, give or take several hundred lines of diff, so I will say no review, even though I know it will be hard to look away. I trimmed most of the "speculative code" (that is, the commented out bits) because it's getting awfully busy along those sidelines. I will preserve the ideas in some more structured form.
* Fix 'Symbol.companionModule' for the resident m...Iulian Dragos2010-12-224-0/+24
| | | | | | | | | | | | | | | | | Fix 'Symbol.companionModule' for the resident mode compiler. It was confused by having modules being translated to lazy values. The direct consequence was a crash in the build manager when looking at a constructor using a default argument (compiled separately), but only on the second run. The resident compiler may run many times over, and symbols may be reused. Therefore, a module symbol that has been translated to a lazy val by refchecks is not guaranteed to have MODULE set on the next run (even before refcheck). Flags are not part of symbol history. Instead we rely on the fact that a synthetic lazy value must have been a module. review by odersky.
* Explaining something for the (largeish N)th tim...Paul Phillips2010-12-191-0/+2
| | | | | | | | | | | | | | | | | | | Explaining something for the (largeish N)th time finally awoke me to the fact that software can explain things. I labored a long time over this error message: I'm sure it can still use work (and/or it will drive scalaz users off some kind of cliff) but the simple common case people have so much trouble with is lit up like a christmas tree and for this I will take some bullets. build/pack/bin/scala -e 'class Foo[T] ; Set[Foo[AnyRef]]() + new Foo[String]' :1: error: type mismatch; found : this.Foo[String] required: this.Foo[java.lang.Object] Note: String <: java.lang.Object, but class Foo is invariant in type T. You may wish to define T as +T instead. (SLS 4.5) class Foo[T] ; Set[Foo[AnyRef]]() + new Foo[String] ^ Review by moors.
* Closes #2792. no reviewHubert Plociniczak2010-11-026-0/+27
|
* Closes #3059, #3895 (the only difference betwee...Hubert Plociniczak2010-10-204-0/+16
| | | | | | | | Closes #3059, #3895 (the only difference between this and r23232 is the forced info transformation that ensures that nested objects are viewed as lazy vals). sbt integration requires new starr for this commit to work.
* Fixed the broken build by my previous change.Iulian Dragos2010-10-141-1/+1
|
* Fixed typo in error message. No review.Martin Odersky2010-04-231-1/+1
|
* Fixed some position issues and build manager test.Iulian Dragos2010-04-111-1/+1
|
* As a brief diversion from real work, implemente...Paul Phillips2010-04-061-1/+1
| | | | | | | | | As a brief diversion from real work, implemented Damerau–Levenshtein and ran it on trunk to elicit obvious misspellings. Unfortunately they're mostly in places like compiler comments which real people never see, but I fixed them anyway. All those English Lit majors who peruse our sources are sure to be pleased. No review.
* If I work on this patch any longer without chec...Paul Phillips2010-04-051-1/+0
| | | | | | | | | | | | | | | | If I work on this patch any longer without checking in I will go stark raving mad. It is broken up into a couple pieces. This one is the changes to test/. It includes fixing a bunch of tests, removing deprecated constructs, moving jars used by tests to the most specific plausible location rather than having all jars on the classpath of all tests, and some filesystem layout change (continuations get their whole own srcpath.) This would be the world's most tedious review, so let's say no review. [Note: after this commit, I doubt things will build very smoothly until the rest of the partest changes follow. Which should only be seconds, but just in case.]
* Fixes #3054. No review.Hubert Plociniczak2010-03-194-0/+16
|
* Closes #3133. Review by community.Hubert Plociniczak2010-03-173-0/+11
|
* Checking the symbols of parameters in overloade...Hubert Plociniczak2010-02-173-0/+19
| | | | | | | | | Checking the symbols of parameters in overloaded methods didn't seem to work in all cases. Apparently the enclosing class of the owner of the parameter was changing during the compilations from trait to the implementation class. This was causing annoying excessive compilation for Types.scala.
* Removed leftovers of r20857, added test for #3045Hubert Plociniczak2010-02-113-0/+11
|
* Disabled failing test. Review by plocinic.Paul Phillips2010-02-107-33/+0
|
* Closes #2651Hubert Plociniczak2010-02-1020-0/+88
|
* Fixes the problem mentioned in #2882, which see...Hubert Plociniczak2010-02-034-0/+11
| | | | | Fixes the problem mentioned in #2882, which seems to be the reason for #2280 - allow simple ananlysis on java sources. Review by dragos
* Correctly check annotated types.Hubert Plociniczak2010-02-023-0/+9
|
* Fixed tests. No review.Hubert Plociniczak2010-02-022-2/+2
|
* Exclude anonymous function classes from the def...Hubert Plociniczak2010-02-014-0/+28
| | | | | | | | Exclude anonymous function classes from the definitions in dependency analysis. This was causing spurious errors in for example Global.scala and Interpreter.scala because of fresh names numbering. Also cleanup up some code. No review.
* Check recursively the type aliases.Hubert Plociniczak2010-02-015-0/+29
|
* Better test for checking existential types, whe...Hubert Plociniczak2010-01-303-0/+24
| | | | | | | | Better test for checking existential types, where symbols not necessarily have the same name. Added test for that. The problem manifested itself in Globals.scala for variable classpath causing execissive compilation without any reason. No review.
* Closes #2650.Hubert Plociniczak2010-01-2915-0/+78
|
* Another batch of tests. No review.Hubert Plociniczak2010-01-2610-0/+57
|
* Hack for the refined build manager to print inf...Hubert Plociniczak2010-01-261-1/+1
| | | | | | Hack for the refined build manager to print info in a deterministic way. No review.
* More tests, plus missing file. No review.Hubert Plociniczak2010-01-2611-0/+58
|
* Changed the info statements in refined build ma...Hubert Plociniczak2010-01-2655-0/+279
| | | | | | | | Changed the info statements in refined build manager to print the information in more consistent way, so that we can test it using partest. Added more tests for build manager, more to follow... No review.
* First test for buildmanager. No review necessaryHubert Plociniczak2010-01-245-0/+21