Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356778 - [search] "Inexact Type Arguments" filter is not showing up even when results are filtered
Summary: [search] "Inexact Type Arguments" filter is not showing up even when results ...
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.8 M2   Edit
Assignee: Markus Keller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-06 04:51 EDT by Satyam Kandula CLA
Modified: 2011-09-06 09:07 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 Satyam Kandula CLA 2011-09-06 04:51:35 EDT
The "Inexact Type Arguments" filter is not showing up even when results are filtered with this filter. 
##########
public class Test<T> {
	public void standard(T t) {
	}
	public <U> T generic(U u) {
		return null;
	}
	public void foo() {
		Test<Object>t = new Test<Object>();
		
		t.<Object>generic(null);
		t.<String>generic(null);
		
		t.standard(null);
		new Test<String>().standard(null);		
	}
}
##########
Reproducible steps:
1. Paste the above program
2. Select 'generic' in the function foo() and search for references.
3. There will be two references. Now, filter one of the results by filtering InExact Type Arguments. 
4. Now select 'standard' in the function foo() and search for references. 
5. You should see only one result and see that one reference is filtered. However, you don't see that filter in the view menu.
Comment 1 Markus Keller CLA 2011-09-06 09:07:22 EDT
Thanks for the nice snippet.

Fixed in HEAD of org.eclipse.jdt.internal.ui.search.GenericTypeFilter.