Bug 79544 - ITypeBinding#isEqualTo(..) does not compare type arguments
Summary: ITypeBinding#isEqualTo(..) does not compare type arguments
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 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-26 05:48 EST by Markus Keller CLA
Modified: 2004-12-15 07:36 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 2004-11-26 05:48:33 EST
JDT/Core from HEAD (including fix for bug 79271).
ITypeBinding#isEqualTo(..) does not compare type arguments:

public class A<X> {
    List<Integer> i;
    List<Number> n;
    List<? extends Number> en;
    List<X> x;
}

Types of i, n, en, and x are not equal, even though ITypeBinding#isEqualTo(..)
says they are (in both directions).
Comment 1 Olivier Thomann CLA 2004-11-26 08:46:33 EST
I will fix it today.
Comment 2 Olivier Thomann CLA 2004-11-26 11:29:21 EST
Fixed and released in HEAD.
Regression tests added in ASTConverter15Test.test0083
Comment 3 Jerome Lanneluc CLA 2004-12-15 07:36:36 EST
Verified (in I20041214-2000) that the test ensures that the 4 bindings are not
equal to each other.