This page is no longer maintained — Please continue to the home page at www.scala-lang.org

XML equals broken?

1 reply
Christoph Driessen
Joined: 2009-04-25,
User offline. Last seen 42 years 45 weeks ago.

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

Mark Harrah
Joined: 2008-12-18,
User offline. Last seen 35 weeks 3 days ago.
Re: XML equals broken?

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland