Bug 83098 - IBinding#isEqualTo(..) does not compare occurrence count of local variables
Summary: IBinding#isEqualTo(..) does not compare occurrence count of local variables
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-18 10:12 EST by Markus Keller CLA
Modified: 2005-02-16 10:48 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-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