Bug 88046 - IBinding#isEqualTo(..) is true for methods with different keys (differently parameterized targets)
Summary: IBinding#isEqualTo(..) is true for methods with different keys (differently p...
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-15 08:45 EST by Markus Keller CLA
Modified: 2005-05-13 09:38 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2005-03-15 08:45:59 EST
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"
Comment 1 Jerome Lanneluc CLA 2005-05-13 09:38:57 EDT
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.