Can someone explain me the error "The method xyz is ambiguous for the type"
I get this compiler-error "The method compareTo(java.lang.Object) is ambiguous for the type MyClass" everytime when I want to access the method "compareTo(Object)", which is overwritten in MyClass and in the superclass of MyClass.
What does it mean?
Thank you for your help!
Ciao
[304 byte] By [
PacMan] at [2007-9-27 22:31:12]

it means you are using a method declared in two of your class declared packages...
the package paradigm was created to provide a way to distinguish the method with the same signature but from different projects..
many Java API methods has the same signature but comes from diferent packages.. if you declare theese packages using '*', you should declare it variables with its full signature...
look this:
http://java.sun.com/docs/books/tutorial/java/interpack/packages.html