Community
Participate
Working Groups
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'...
Created attachment 58430 [details] Proposed fix This patch fixes the issue and deprecated method is correctly resolved.
Created attachment 59391 [details] patch + test case Contains the same fix + corresponding test case: SelectionJavadocModelTests::testBug171802()
Thanks Eric => released for 3.3 M6 in HEAD stream. P.S. Comment 0 should read SearchEngine instead of SelectionEngine...
Verified for 3.3 M6 using build I20070320-0010