diff options
author | schinz <schinz@epfl.ch> | 2005-01-25 13:59:35 +0000 |
---|---|---|
committer | schinz <schinz@epfl.ch> | 2005-01-25 13:59:35 +0000 |
commit | 80c6300d103adcc45e50b2c91c104c7c1ce6dfc3 (patch) | |
tree | 4a85884c19cf6fb39dd40ca4da3f88da638017eb /sources | |
parent | 5de62f994f9c263b0d0fc1c6a872e6a944ea308c (diff) | |
download | scala-80c6300d103adcc45e50b2c91c104c7c1ce6dfc3.tar.gz scala-80c6300d103adcc45e50b2c91c104c7c1ce6dfc3.tar.bz2 scala-80c6300d103adcc45e50b2c91c104c7c1ce6dfc3.zip |
- bug fix: use System.identityHashCode to get t...
- bug fix: use System.identityHashCode to get the hash code of the
instance (otherwise the redefined version might not be appropriate, and
could even crash)
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scala/runtime/types/SingleType.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/scala/runtime/types/SingleType.java b/sources/scala/runtime/types/SingleType.java index e8a7b56f01..f27d5b85f8 100644 --- a/sources/scala/runtime/types/SingleType.java +++ b/sources/scala/runtime/types/SingleType.java @@ -42,6 +42,6 @@ public class SingleType extends Type { } public int hashCode() { - return instance.hashCode(); + return System.identityHashCode(instance); } } |