Bug 90779

Summary: [search] Constructor Declaration search with ignoring declaring and return type also ignores type name
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: martinae
Version: 3.1   
Target Milestone: 3.1 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Markus Keller CLA 2005-04-08 07:03:40 EDT
I20050405-0800

Select any parameterless constructor declaration and press Ctrl+G.
=> All constructor declarations with no parameters are found (zillions).

The problem is that the 'Search > Declarations > Workspace' action uses
  IJavaSearchConstants.DECLARATIONS |
  IJavaSearchConstants.IGNORE_DECLARING_TYPE |
  IJavaSearchConstants.IGNORE_RETURN_TYPE,
and the resulting ConstructorPattern contains no name any more. The unqualified
type name should stay in a constructor pattern, even if one of the IGNORE
constants is used.
Comment 1 Frederic Fusier CLA 2005-04-11 03:41:44 EDT
Fixed and released in HEAD.

[jdt-core-internal]
Test case added in JavaSearchBugsTests
Comment 2 Maxime Daniel CLA 2005-05-12 08:01:52 EDT
Verified for 3.1 M7 using build I20050509-2010 + jdt.core HEAD.