Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Case class and Proxy equals behaviour in Scala 2.9 is incorrect #4807
In Scala 2.9 a case class is not equal to itself (even the same instance) if it inherits from Proxy. In Scala 2.8 this is not the case.
The discussion here describes it:
This is causing us huge trouble as we have to:
It has made using case classes a unsafe thing to do unless you are sure nothing they inherit from has Proxy, or will ever have Proxy, in its inheritance tree. What's worse is that this problem is causing our code to fail at runtime in very unexpected ways. If this behaviour is by design the least I would expect is some compiler warnings.
Imported From: https://issues.scala-lang.org/browse/SI-4807?orig=1