Bug 211888

Summary: [search] Search results aren't the same with or without a syntax error
Product: [Eclipse Project] JDT Reporter: David Audel <david_audel>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: Olivier_Thomann
Version: 3.3   
Target Milestone: 3.5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description David Audel CLA 2007-12-04 11:03:39 EST
build I20071127-0800

1) create X.java
public class X{
	void foo() {
		new X() {};
	}
}
2) Search all reference of type X.
I see an anonymous type in the search view

3) add a syntax error in the method
public class X{
	void foo() {
		#
		new X() {};
	}
}

4) Search all reference of type X.
I see a method in the search view.

The result should be the same in both case.
Comment 1 Frederic Fusier CLA 2009-09-29 09:59:26 EDT
It seems to work since 3.5.0...
Comment 2 Olivier Thomann CLA 2009-10-27 12:54:09 EDT
Verified for 3.6M3 using I20091027-0100.
Comment 3 Olivier Thomann CLA 2009-10-27 12:54:27 EDT
Verified.