Bug 90779 - [search] Constructor Declaration search with ignoring declaring and return type also ignores type name
Summary: [search] Constructor Declaration search with ignoring declaring and return ty...
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 M7   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-08 07:03 EDT by Markus Keller CLA
Modified: 2005-05-12 08:51 EDT (History)
1 user (show)

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-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.