[Clirr-devel] [ clirr-Feature Requests-961229 ] Error messages raised on a class that hasn't changed
Status: Alpha
Brought to you by:
lkuehne
From: SourceForge.net <no...@so...> - 2004-06-08 20:05:40
|
Feature Requests item #961229, was opened at 2004-05-27 00:54 Message generated for change (Comment added) made by lkuehne You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=590802&aid=961229&group_id=89627 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Stephen Colebourne (scolebourne) Assigned to: Lars Kühne (lkuehne) Summary: Error messages raised on a class that hasn't changed Initial Comment: Not sure why, but these errors seem wrong as the code hasn't changed. Commons collections 3.0-HEAD ERROR: Method 'public java.lang.Object next()' has been removed in org.apache.commons.collections.map.AbstractLinkedMap$ LinkIterator ERROR: Method 'public java.lang.Object previous()' has been removed in org.apache.commons.collections.map.AbstractLinkedMap$ LinkIterator ERROR: Method 'public java.lang.Object next()' has been removed in org.apache.commons.collections.map.AbstractHashedMap $HashIterator ---------------------------------------------------------------------- >Comment By: Lars Kühne (lkuehne) Date: 2004-06-08 22:05 Message: Logged In: YES user_id=401384 I think I know what the problem is now: > javap -classpath commons-collections-3.0.jar -c 'org.apache.commons.collections.map.AbstractLinkedMap$LinkIterator' | grep public public abstract class org.apache.commons.collections.map.AbstractLinkedMap$LinkIterator extends java.lang.Object implements org.apache.commons.collections.OrderedIterator,org.apache.commons.collections.ResettableIterator{ public boolean hasNext(); public boolean hasPrevious(); public void remove(); public void reset(); public java.lang.String toString(); public abstract java.lang.Object previous(); public abstract java.lang.Object next(); > javap -classpath commons-collections.jar -c 'org.apache.commons.collections.map.AbstractLinkedMap$LinkIterator' | grep public public abstract class org.apache.commons.collections.map.AbstractLinkedMap$LinkIterator extends java.lang.Object implements org.apache.commons.collections.OrderedIterator,org.apache.commons.collections.ResettableIterator{ public boolean hasNext(); public boolean hasPrevious(); public void remove(); public void reset(); public java.lang.String toString(); Clirr is right, those methods *have* been removed (different compiler?), but removal of abstract methods should not lead to an error message if that method is specified by a superclass / interface. ---------------------------------------------------------------------- Comment By: Lars Kühne (lkuehne) Date: 2004-06-06 13:56 Message: Logged In: YES user_id=401384 Forget my comment on return type, I was looking at the 'next' field, not the method... ---------------------------------------------------------------------- Comment By: Lars Kühne (lkuehne) Date: 2004-06-06 10:44 Message: Logged In: YES user_id=401384 OK, thanks - I can reproduce this now. What's even more puzzeling is that the reported return type is incorrect, judging from the javadocs AbstractHashedMap$HashIterator.next() returns AbstractHashedMap.HashEntry, not Object. Will investigate... ---------------------------------------------------------------------- Comment By: Stephen Colebourne (scolebourne) Date: 2004-06-04 00:49 Message: Logged In: YES user_id=408725 HEAD file too big to attach. Try: http://cvs.apache.org/builds/jakarta- commons/nightly/commons-collections/ Javadoc on left (3.0 and HEAD) http://jakarta.apache.org/commons/collections/ ---------------------------------------------------------------------- Comment By: Stephen Colebourne (scolebourne) Date: 2004-06-04 00:48 Message: Logged In: YES user_id=408725 HEAD file too big to attach. Try: http://cvs.apache.org/builds/jakarta- commons/nightly/commons-collections/ Javadoc on left (3.0 and HEAD) http://jakarta.apache.org/commons/collections/ ---------------------------------------------------------------------- Comment By: Stephen Colebourne (scolebourne) Date: 2004-06-04 00:46 Message: Logged In: YES user_id=408725 Collections 3.0 vs CVS HEAD jar (attached) ---------------------------------------------------------------------- Comment By: Lars Kühne (lkuehne) Date: 2004-06-02 10:40 Message: Logged In: YES user_id=401384 Which versions of commons-collections are you testing against, and where can I find precompiled binaries and the javadoc for those versions? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=590802&aid=961229&group_id=89627 |