summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorschinz <schinz@epfl.ch>2005-01-25 13:59:35 +0000
committerschinz <schinz@epfl.ch>2005-01-25 13:59:35 +0000
commit80c6300d103adcc45e50b2c91c104c7c1ce6dfc3 (patch)
tree4a85884c19cf6fb39dd40ca4da3f88da638017eb /sources
parent5de62f994f9c263b0d0fc1c6a872e6a944ea308c (diff)
downloadscala-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.java2
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);
}
}