Bug 89014

Summary: IMethodBinding#isEqualTo(..) returns true for methods in different anonymous classes
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 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Markus Keller CLA 2005-03-24 13:10:37 EST
I20050323-1615

IMethodBinding#isEqualTo(..) returns true for methods in different anonymous
classes. Here, the two run() methods are said to be equal:

public class Try {
	Runnable one= new Runnable(){
		public void run() {
		}
	};
	Runnable two= new Runnable(){
		public void run() {
		}
	};
}
Comment 1 Olivier Thomann CLA 2005-03-24 16:22:51 EST
Fixed and released in HEAD.
I added a test on the constant pool name. This is the only difference between
the two anonymous.
Regression test added in ASTConverterTestAST3_2.test0601.
Comment 2 Olivier Thomann CLA 2005-03-30 23:39:36 EST
Verified in 20050330-0500