diff options
author | David MacIver <david.maciver@gmail.com> | 2009-02-19 23:00:10 +0000 |
---|---|---|
committer | David MacIver <david.maciver@gmail.com> | 2009-02-19 23:00:10 +0000 |
commit | 7e908c84ffed89bf8325eaa0dddfc449213f1c64 (patch) | |
tree | c53fd297955ea98a9e9b166a34f02dda26c038a0 /src/library | |
parent | 275e9c737537f12a3488dfd64ee84e6e7fae6ffe (diff) | |
download | scala-7e908c84ffed89bf8325eaa0dddfc449213f1c64.tar.gz scala-7e908c84ffed89bf8325eaa0dddfc449213f1c64.tar.bz2 scala-7e908c84ffed89bf8325eaa0dddfc449213f1c64.zip |
Fix for #1387.
Unfortunately I can't figure out a good way to test this. But it doesn't
seem to break anything existing.
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/runtime/ScalaRunTime.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/runtime/ScalaRunTime.scala b/src/library/scala/runtime/ScalaRunTime.scala index 02639ba969..ea5e51f0ce 100644 --- a/src/library/scala/runtime/ScalaRunTime.scala +++ b/src/library/scala/runtime/ScalaRunTime.scala @@ -82,7 +82,7 @@ object ScalaRunTime { caseFields(x).mkString(x.productPrefix + "(", ",", ")") def _hashCode(x: Product): Int = { - var code = x.getClass().hashCode() + var code = x.getClass().getName().hashCode() val arr = x.productArity var i = 0 while (i < arr) { |