Community
Participate
Working Groups
v_540a In java.util.Collections: - call to Iterator#hasNext() in <T extends Object & Comparable<? super T>> T min(Collection<? extends T> coll): Ljava/util/Iterator<+Ljava/util/Collections;.min<T:Ljava/lang/Object;:Ljava/lang/Comparable<-TT;>;>(Ljava/util/Collection<+TT;>;)TT;:TT;>;.hasNext()Z - call to Iterator#hasNext() in <T> T min(Collection<? extends T> coll, Comparator<? super T> comp): Ljava/util/Iterator<+Ljava/util/Collections;.min<T:Ljava/lang/Object;>(Ljava/util/Collection<+TT;>;Ljava/util/Comparator<-TT;>;)TT;:TT;>;.hasNext()Z The keys are different, but isEqualTo(..) returns true. The problem is already there when comparing the types of the variable declarations "Iterator<? extends T> i"
Verified in I20050513-0010 (using the ASTView) that the 2 keys are still different and that isEqualsTo(...) returns false. Please reopen if you still see the problem.