Bug 93408 - ITypeBinding#isEqualTo(..) does not resolve type variables
Summary: ITypeBinding#isEqualTo(..) does not resolve type 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 RC1   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-02 10:16 EDT by Markus Keller CLA
Modified: 2005-05-27 04:46 EDT (History)
0 users

See Also:


Attachments
Proposed patch (11.68 KB, patch)
2005-05-13 10:01 EDT, Jerome Lanneluc CLA
no flags Details | Diff
Regression test (7.08 KB, patch)
2005-05-13 10:02 EDT, Jerome Lanneluc CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2005-05-02 10:16:07 EDT
v_553a

The type bindings for the two references to ArrayList<E> below have different
keys, but ITypeBinding#isEqualTo(..) returns true for them. Maybe the same
problem as bug 88046.


import java.util.ArrayList;

public class Bind<E> {
	ArrayList<E> ae;

	static class Other<E> {
		ArrayList<E> ae;
	}
}
Comment 1 Jerome Lanneluc CLA 2005-05-13 10:01:04 EDT
Created attachment 21101 [details]
Proposed patch

Changed BindingComparator to use a set of visited types, instead of a boolean
to avoid recursion, but to visit enough.
Comment 2 Jerome Lanneluc CLA 2005-05-13 10:02:27 EDT
Created attachment 21102 [details]
Regression test

Added regression test ASTConverter15Test#test0181()
Comment 3 Jerome Lanneluc CLA 2005-05-15 06:14:33 EDT
Released patch and regression test
Comment 4 David Audel CLA 2005-05-27 04:46:44 EDT
Verified in i20050527-0010