Bug 73205 - [Search] would be nice to be able to search for typecasts
Summary: [Search] would be nice to be able to search for typecasts
Status: VERIFIED DUPLICATE of bug 155013
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.4 M4   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-02 21:20 EDT by mike andrews CLA
Modified: 2007-12-12 09:59 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mike andrews CLA 2004-09-02 21:20:16 EDT
would be nice to be able to search for typecasts to specific or wildcard types.

so if i have somewhere in my code:

"String name = (String) list.get(0);"

i would like to be able to search for casts to 'String' class. or, i may like to
search for casts to ANY class type, and find this one along with others.

this would help in identifying areas of code which can be improved by changes
making them type-safe.
Comment 1 Philipe Mulet CLA 2004-09-03 04:27:27 EDT
This is something we have in mind. More search patterns, think of search for 
synchronization on a given type, or catching/throwing certain types.
Comment 2 Frederic Fusier CLA 2005-03-14 15:19:44 EST
If time permit... Otherwise, defer to next release
Comment 3 Frederic Fusier CLA 2005-03-16 11:04:51 EST
Unfortunately, defer post 3.1
Comment 4 Frederic Fusier CLA 2005-08-05 04:02:26 EDT
Reopen for 3.2
Comment 5 Frederic Fusier CLA 2006-03-30 08:26:40 EST
Must be fixed in conjunction with "Search Template" enhancement (see bug 110157)
Comment 6 Frederic Fusier CLA 2007-06-21 09:42:14 EDT
Reopen as LATER is deprecated...
Comment 7 Frederic Fusier CLA 2007-06-21 09:51:25 EDT
Should be more addressed while fixing bug 155013 than bug 110157...
Comment 8 Frederic Fusier CLA 2007-11-29 06:37:17 EST
Addressed by using fine grain flag IJavaSearchConstants#CAST_TYPE_REFERENCE (see bug 155013).

Mark as duplicate because no additional changes were necessary after bug 155013 was fixed...


*** This bug has been marked as a duplicate of bug 155013 ***
Comment 9 Eric Jodet CLA 2007-12-12 09:59:22 EST
Verified for 3.4 M4 using build I20071211-0010