Bug 83098

Summary: IBinding#isEqualTo(..) does not compare occurrence count of local variables
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Markus Keller CLA 2005-01-18 10:12:25 EST
I20050112-1200 + jdt.core v_532

In the following example, the two IVariableBindings for the two 'string'
variables are considered IBinding#isEqualTo(..) each other, which is wrong:

	void m(String[] args) {
		for (int i= 0; i < args.length; i++) {
			String string= args[i];
		}
		for (int i= 0; i < args.length; i++) {
			String string= args[i];
		}
	}
Comment 1 Olivier Thomann CLA 2005-01-18 12:08:14 EST
I added a test on the id forthe local variable.
Fixed and released in HEAD.
Regression test added in ASTConverterTestAST3_2.test0596.
Comment 2 David Audel CLA 2005-02-16 10:48:48 EST
Verified in I20050215-2300