- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
XML equals broken?
Wed, 2011-01-05, 12:31
With Scala 2.8.0 and 2.8.1 the comparison of two nodes having some MetaData yields a strange result.
scala> ==
res4: Boolean = false
// expected result
scala> ==
res5: Boolean = true
// expected result
scala> ==
res6: Boolean = true
// expected result
scala> ==
res7: Boolean = true
// should be false
The last comparison is false in Scala 2.7.7, which is what I would expect intuitively. Is this a bug?
-c
On Wed, 5 Jan 2011 12:31:50 +0100
Christoph Drießen wrote:
> With Scala 2.8.0 and 2.8.1 the comparison of two nodes having some
> MetaData yields a strange result.
>
> scala> ==
> res4: Boolean = false
> // expected result
>
> scala> ==
> res5: Boolean = true
> // expected result
>
> scala> ==
> res6: Boolean = true
> // expected result
>
> scala> ==
> res7: Boolean = true
> // should be false
>
> The last comparison is false in Scala 2.7.7, which is what I would
> expect intuitively. Is this a bug?
It looks like #3886.
-Mark