Summary: | IBinding#isEqualTo(..) fails with a field that hides another | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | dirk_baeumer, martinae |
Version: | 3.1 | ||
Target Milestone: | 3.1 M4 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Markus Keller
2004-11-16 10:24:22 EST
A simpler example: Bindings for A.field and I.field are considered isEqualTo(..) each other: class A implements I { public static final int field= 1; } interface I { int field= 1000; } Also doesn't work when comparing methods m(){} instead of fields. Fixed and released in HEAD. Regression tests added. ASTConverterTestAST3_2.test0574 and test0575. Verified (in I200412140010) that the first test ensures that the 2 fields are not equal, and that the second test ensures that the 2 methods are not equal. |