Bug 75816 - [search] Call Hierarchy does not find calls to the constructor of java.util.HashMap.Entry [call hierarchy]
Summary: [search] Call Hierarchy does not find calls to the constructor of java.util.H...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 RC1   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-07 12:06 EDT by Michael Scharf CLA
Modified: 2005-05-26 21:56 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 Michael Scharf CLA 2004-10-07 12:06:25 EDT
- select the constructor of java.util.HashMap.Entry
- Call Hierarchy
==> the call hierarchy is empty (no calls found)

search in the file for "new Entry" and you will find several calls
to the constructor of Entry :-/

Problem found with eclipse 3.0.1
Comment 1 Markus Keller CLA 2004-10-07 13:11:10 EDT
Moving to JDT/Core.

Searching for references or declarations of said constructor doesn't report any
matches in I200410050800 with j9n142-20040928a.
Comment 2 Frederic Fusier CLA 2004-10-07 13:13:12 EDT

*** This bug has been marked as a duplicate of 75642 ***
Comment 3 Frederic Fusier CLA 2004-10-07 13:22:15 EDT
Oooops, my fault... I thought it was against 3.1...
Comment 4 Frederic Fusier CLA 2004-11-02 06:17:44 EST
BinaryIndexer stores HashMap$Entry/4 as key index for constructor reference
although constructor pattern is looking for Entry/4... no chance to find it in
index files!
Comment 5 Frederic Fusier CLA 2005-03-14 15:08:24 EST
If time permit
Comment 6 Frederic Fusier CLA 2005-05-25 07:09:53 EDT
Fixed and released in HEAD.

Add key on static inner class in index. This increases size of index files about
0.7% (on classic tests workspace) and have no significant impact on performances.

[jdt-core internal]
Changes done in AbstractIndexer.addConstructorReference(...).
Also upgrade DiskIndex.SIGNATURE

Test case added in JavaSearchBugsTests
Comment 7 Olivier Thomann CLA 2005-05-26 21:56:19 EDT
Verified in I20050526-2000