Bug 83817 - IBinding#isEqualTo(..) returns true for methods of different parameterized types
Summary: IBinding#isEqualTo(..) returns true for methods of different parameterized types
Status: VERIFIED FIXED
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: 3.1 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-27 06:32 EST by Markus Keller CLA
Modified: 2005-02-16 12:41 EST (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-01-27 06:32:05 EST
I20050126-0800

class X<T> {
    public void method(Number num) {}
}

class Z {
	void test() {
		new X<String>().method(0);
		new X<Integer>().method(1);
	}
}

The IMethodBindings for the two calls to method(..) have different keys, but
isEqualTo(..) returns true.
Comment 1 Olivier Thomann CLA 2005-01-28 13:34:58 EST
Fixed and released in HEAD.
Regression test added in ASTConverter15Test.test0127.
Comment 2 Olivier Thomann CLA 2005-01-28 14:29:41 EST
I was too permissive comparing the compiler bindings. I released a much more
aggressive comparison. I could run all tests without getting StackOverFlowError.
Let me know if you have any problem with that version.
Comment 3 David Audel CLA 2005-02-16 12:41:35 EST
Verified in I20050215-2300