This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ...have the same erasure, yet neither overrides the other


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]