This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: ...have the same erasure, yet neither overrides the other
- From: Per Bothner <per at bothner dot com>
- To: Yaroslav Kavenchuk <kavenchuk at gmail dot com>
- Cc: kawa at sourceware dot org
- Date: Thu, 08 Apr 2010 00:59:08 -0700
- Subject: Re: ...have the same erasure, yet neither overrides the other
- References: <4BBD81C7.4060509@gmail.com>
On 04/08/2010 12:12 AM, Yaroslav Kavenchuk wrote:
kawa from svn
$ java -version
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b87)
Java HotSpot(TM) Client VM (build 18.0-b01, mixed mode, sharing)
$ ant
...
java-classes:
[javac] Compiling 554 source files to g:\gnu\home\src\kawa\kawa
[javac]
g:\gnu\home\src\kawa\kawa\gnu\kawa\util\GeneralHashTable.java:39: name
clash: getNode(K#1) in GeneralHashTable and
getNode(Object) in AbstractHashTable have the same erasure, yet neither
overrides the other
[javac] public HashNode<K,V> getNode (K key)
Try replacing the:
public Entry getNode (K key)
by:
public Entry getNode (Object key)
(Using K is more logically correct IMO, but using Object helps
with java.util.Map compatibility.)
That should also at least problem #1 - I'm less sure about the
other two problems - I'll look at them tomorrow, unless you can
confirm that the above fix solves all of them.
--
--Per Bothner
per@bothner.com http://per.bothner.com/