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]

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


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)
[javac] ^
[javac] where K#1,V#1,Entry,K#2,V#2 are type-variables:
[javac] K#1 extends Object declared in class GeneralHashTable
[javac] V#1 extends Object declared in class GeneralHashTable
[javac] Entry extends java.util.Map.Entry<K#2,V#2> declared in class AbstractHashTable
[javac] K#2 extends Object declared in class AbstractHashTable
[javac] V#2 extends Object declared in class AbstractHashTable
[javac] g:\gnu\home\src\kawa\kawa\gnu\expr\NameLookup.java:12: methods getNode(K#1) from GeneralHashTable<Object,Declarati
on> and getNode(Object) from AbstractHashTable<HashNode<Object,Declaration>,Object,Declaration> are inherited with the same si
gnature
[javac] public class NameLookup extends GeneralHashTable<Object,Declaration>
[javac] ^
[javac] where K#1,V#1,Entry,K#2,V#2 are type-variables:
[javac] K#1 extends Object declared in class GeneralHashTable
[javac] V#1 extends Object declared in class GeneralHashTable
[javac] Entry extends java.util.Map.Entry<K#2,V#2> declared in class AbstractHashTable
[javac] K#2 extends Object declared in class AbstractHashTable
[javac] V#2 extends Object declared in class AbstractHashTable
[javac] g:\gnu\home\src\kawa\kawa\gnu\kawa\util\IdentityHashTable.java:8: methods getNode(K#1) from GeneralHashTable<K#2,V
#2> and getNode(Object) from AbstractHashTable<HashNode<K#2,V#2>,K#2,V#2> are inherited with the same signature
[javac] public class IdentityHashTable<K,V> extends GeneralHashTable<K,V>
[javac] ^
[javac] where K#1,V#1,K#2,V#2,Entry,K#3,V#3 are type-variables:
[javac] K#1 extends Object declared in class GeneralHashTable
[javac] V#1 extends Object declared in class GeneralHashTable
[javac] K#2 extends Object declared in class IdentityHashTable
[javac] V#2 extends Object declared in class IdentityHashTable
[javac] Entry extends java.util.Map.Entry<K#3,V#3> declared in class AbstractHashTable
[javac] K#3 extends Object declared in class AbstractHashTable
[javac] V#3 extends Object declared in class AbstractHashTable
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 3 errors


--
WBR, Yaroslav Kavenchuk


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