diff options
author | Paul Phillips <paulp@improving.org> | 2010-03-19 21:48:42 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-03-19 21:48:42 +0000 |
commit | 6613b1cdae66ae23edfd0e20eb5d4d066018681d (patch) | |
tree | c033a214a3d7e15ca01cdf778b88ac6e026c0fb7 /src/compiler/scala/tools/nsc/backend/JavaPlatform.scala | |
parent | f2be3e6836014b3e4db9c7eca3bb4da8ab447f89 (diff) | |
download | scala-6613b1cdae66ae23edfd0e20eb5d4d066018681d.tar.gz scala-6613b1cdae66ae23edfd0e20eb5d4d066018681d.tar.bz2 scala-6613b1cdae66ae23edfd0e20eb5d4d066018681d.zip |
Returning to the thrilling world of equality an...
Returning to the thrilling world of equality and hashCodes now
that Any.## is a reality. Moved the hash functions from Predef to
ScalaRunTime, and made what appears to be an optimization to equals by
not losing the result of an instanceof test. Review by community.
Diffstat (limited to 'src/compiler/scala/tools/nsc/backend/JavaPlatform.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/JavaPlatform.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/JavaPlatform.scala b/src/compiler/scala/tools/nsc/backend/JavaPlatform.scala index 129a747e64..c4365a82ac 100644 --- a/src/compiler/scala/tools/nsc/backend/JavaPlatform.scala +++ b/src/compiler/scala/tools/nsc/backend/JavaPlatform.scala @@ -26,6 +26,9 @@ trait JavaPlatform extends Platform[AbstractFile] { ) ::: depAnalysisPhase lazy val externalEquals = getMember(BoxesRunTimeClass, nme.equals_) + def externalEqualsNumNum = getMember(BoxesRunTimeClass, "equalsNumNum") + def externalEqualsNumChar = getMember(BoxesRunTimeClass, "equalsNumChar") + def externalEqualsNumObject = getMember(BoxesRunTimeClass, "equalsNumObject") def isMaybeBoxed(sym: Symbol): Boolean = { import definitions._ |