diff options
author | Martin Odersky <odersky@gmail.com> | 2012-09-19 19:02:43 +0200 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-09-20 09:41:34 -0700 |
commit | d87592da76eb555f0e3fc3732169e56b1852fba1 (patch) | |
tree | 69e6e4c21241e174942bce493aec289b46a6dce9 /test/files | |
parent | c7204787b48166b5dee6215525f69ae615535c5a (diff) | |
download | scala-d87592da76eb555f0e3fc3732169e56b1852fba1.tar.gz scala-d87592da76eb555f0e3fc3732169e56b1852fba1.tar.bz2 scala-d87592da76eb555f0e3fc3732169e56b1852fba1.zip |
Disabled failing build manager tests.
When the refined build manager computes its change sets it mixes up
the types. It computes constructors of inner classes of the first
compilation that point to types of the second compilation. This
breaks a useful assertion in ExtensionMethods. The error you get for
t4245 is
java.lang.AssertionError: assertion failed: unexpected constructor
erasure A#6956.this.B#20211 for class B#6963
What goes on here is that the primary constructor of inner
class B#6963 points to the new version of that inner class
A#6956.this.B#20211. This happens during the computation of change
sets, not during normal compilation. Since it looks like the
computation of change sets is broken I have disabled the tests,
rather than disabling the assertion.
It seems that during residential compilation, the result type of a
constructor can be a different version of the enclosing class. I
could not reproduce this
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/disabled/A.scala (renamed from test/files/buildmanager/overloaded_1/A.scala) | 2 | ||||
-rw-r--r-- | test/files/disabled/overloaded_1.check (renamed from test/files/buildmanager/overloaded_1/overloaded_1.check) | 0 | ||||
-rw-r--r-- | test/files/disabled/overloaded_1.test (renamed from test/files/buildmanager/overloaded_1/overloaded_1.test) | 0 | ||||
-rw-r--r-- | test/files/disabled/t4245/A.scala (renamed from test/files/buildmanager/t4245/A.scala) | 0 | ||||
-rw-r--r-- | test/files/disabled/t4245/t4245.check (renamed from test/files/buildmanager/t4245/t4245.check) | 0 | ||||
-rw-r--r-- | test/files/disabled/t4245/t4245.test (renamed from test/files/buildmanager/t4245/t4245.test) | 0 |
6 files changed, 1 insertions, 1 deletions
diff --git a/test/files/buildmanager/overloaded_1/A.scala b/test/files/disabled/A.scala index 33b63b8006..c070faf978 100644 --- a/test/files/buildmanager/overloaded_1/A.scala +++ b/test/files/disabled/A.scala @@ -3,7 +3,7 @@ trait As { override def foo = this /// Shouldn't cause the change override def foo(act: List[D]) = this } - + abstract class D{ def foo: D = this def foo(act: List[D]) = this diff --git a/test/files/buildmanager/overloaded_1/overloaded_1.check b/test/files/disabled/overloaded_1.check index 4d643ce6b4..4d643ce6b4 100644 --- a/test/files/buildmanager/overloaded_1/overloaded_1.check +++ b/test/files/disabled/overloaded_1.check diff --git a/test/files/buildmanager/overloaded_1/overloaded_1.test b/test/files/disabled/overloaded_1.test index 392e0d365f..392e0d365f 100644 --- a/test/files/buildmanager/overloaded_1/overloaded_1.test +++ b/test/files/disabled/overloaded_1.test diff --git a/test/files/buildmanager/t4245/A.scala b/test/files/disabled/t4245/A.scala index 7c4efe1b4b..7c4efe1b4b 100644 --- a/test/files/buildmanager/t4245/A.scala +++ b/test/files/disabled/t4245/A.scala diff --git a/test/files/buildmanager/t4245/t4245.check b/test/files/disabled/t4245/t4245.check index 3d3898c671..3d3898c671 100644 --- a/test/files/buildmanager/t4245/t4245.check +++ b/test/files/disabled/t4245/t4245.check diff --git a/test/files/buildmanager/t4245/t4245.test b/test/files/disabled/t4245/t4245.test index 392e0d365f..392e0d365f 100644 --- a/test/files/buildmanager/t4245/t4245.test +++ b/test/files/disabled/t4245/t4245.test |