An update to my previous mail in this thread.

> > java.lang.NoSuchMethodError: 
> > freenet/support/Heap$Element.compareTo(Ljava/lang/Object;)I
> >     at freenet.support.Heap.put(Heap.java:106)

The following patch cured /this/ problem, but I still have others. The
basic problem with all of these seem to be abstract classes that
implement an interface, but do not "implement" (well actually
declaring them as abstract is enough) all of this interface's methods.

I don't know whether that *should* be legal, but since it seems
cleaner this way, too, I recommend all missing methods should be
declared as abstract. I'll be sending more patches soon.

RCS file: /cvsroot/freenet/freenet/src/freenet/support/Heap.java,v
retrieving revision 1.5
diff -u -r1.5 Heap.java
--- Heap.java   6 Jul 2002 09:35:46 -0000       1.5
+++ Heap.java   5 Oct 2002 22:06:00 -0000
@@ -44,6 +44,8 @@
             return this;
         }
 
+       abstract public int compareTo(Object e);
+
         /**
          * Removes the element from the list.
          * @return  true if the elemnt was in the list.


-- 
Robbe

Attachment: signature.ng
Description: PGP signature

Reply via email to