Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356778

Summary: [search] "Inexact Type Arguments" filter is not showing up even when results are filtered
Product: [Eclipse Project] JDT Reporter: Satyam Kandula <satyam.kandula>
Component: UIAssignee: Markus Keller <markus.kell.r>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r
Version: 3.7.1   
Target Milestone: 3.8 M2   
Hardware: All   
OS: All   
Whiteboard:

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.