Bug 171802

Summary: [javadoc][select] F3 does not work on method which have deprecated type as argument
Product: [Eclipse Project] JDT Reporter: Frederic Fusier <frederic_fusier>
Component: CoreAssignee: Eric Jodet <eric_jodet>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: philippe_mulet
Version: 3.3Keywords: contributed
Target Milestone: 3.3 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix
none
patch + test case none

Description Frederic Fusier CLA 2007-01-26 10:04:10 EST
Having org.eclipse.jdt.core project in my workspace, I open SelectionEngine and go to the deprecated method:
 	public void searchAllTypeNames(
		IWorkspace workspace,
		final char[] packageName, 
		final char[] typeName,
		final int matchMode, 
		final boolean isCaseSensitive,
		int searchFor, 
		IJavaSearchScope scope, 
		final ITypeNameRequestor nameRequestor,
		int waitingPolicy,
		IProgressMonitor progressMonitor)  throws JavaModelException
In this method Javadoc, there's a @deprecated tag telling to use another searchTypeNames method instead. Trying to select this method fails with a bip and 'Current text selection does not resolve to a Java element'...
Comment 1 Eric Jodet CLA 2007-02-07 04:01:20 EST
Created attachment 58430 [details]
Proposed fix

This patch fixes the issue and deprecated method is correctly resolved.
Comment 2 Eric Jodet CLA 2007-02-20 12:04:30 EST
Created attachment 59391 [details]
patch + test case

Contains the same fix
+ corresponding test case: SelectionJavadocModelTests::testBug171802()
Comment 3 Frederic Fusier CLA 2007-02-20 12:42:39 EST
Thanks Eric => released for 3.3 M6 in HEAD stream.

P.S. Comment 0 should read SearchEngine instead of SelectionEngine...
Comment 4 Olivier Thomann CLA 2007-03-20 09:04:13 EDT
Verified for 3.3 M6 using build I20070320-0010