Bug 89014 - IMethodBinding#isEqualTo(..) returns true for methods in different anonymous classes
Summary: IMethodBinding#isEqualTo(..) returns true for methods in different anonymous ...
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 M6   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-24 13:10 EST by Markus Keller CLA
Modified: 2005-03-30 23:39 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-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