[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-kawa] [bug #36847] CharSequence#hashCode
From: |
Helmut Eller |
Subject: |
[Bug-kawa] [bug #36847] CharSequence#hashCode |
Date: |
Sat, 14 Jul 2012 17:36:19 +0000 |
User-agent: |
Opera/9.80 (X11; Linux i686; U; en) Presto/2.10.289 Version/12.00 |
URL:
<http://savannah.gnu.org/bugs/?36847>
Summary: CharSequence#hashCode
Project: Kawa
Submitted by: ellerh
Submitted on: Sat 14 Jul 2012 05:36:18 PM GMT
Category: Code generation
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
This example doesn't work on Android:
(import (only (rnrs hashtables) string-hash))
(string-hash "foo")
The log contains this message:
I/dalvikvm(10717): Could not find method java.lang.CharSequence.hashCode,
referenced from method kawa.lib.rnrs.hashtables.stringHash
The problem seems to be caused by this:
1: invokeinterface (1 args) <InterfaceMethod java.lang.CharSequence.hashCode
()int>
CharSequence is an interface that doesn't epxlicitly define hashCode
but hashCode is defined on Object. I guess Kawa could just as well
use invokevirtual Object#hashCode.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?36847>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Bug-kawa] [bug #36847] CharSequence#hashCode,
Helmut Eller <=