Bug 73922 - [Search][Javadoc] Search for method with boolean argument returns wrong matches
Summary: [Search][Javadoc] Search for method with boolean argument returns wrong matches
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-14 15:54 EDT by Gary Gregory CLA
Modified: 2004-10-28 06:22 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 Gary Gregory CLA 2004-09-14 15:54:58 EDT
Version 3.1.M1.
I have a method defined "LogTarget process(boolean b)" in a class A in package
P1. In the Java Browsing Perspective, in the Members pane, I
right-click/References/Workspace and get incorrect references in all different
packages and classes in my workspace. Calls to the method are correctly matched
but extra matches are also returned in the Search View.

For example, the following "process" reference is matched in all Javadocs:

    /**
     * Do the actual processing of the action.
     *
     * @see
com.seagullsw.appinterface.tools.securitytoolkit.action.Action#process(ActionCommandLineSettings)
     *
     * @param actionCommandLineSettings the pre-processed command line arguments
for this action.
     */

The class in the @see is
"com.seagullsw.appinterface.tools.securitytoolkit.action.Action" which is NOT "A".

I have many such mismatches which makes the Search feature not much better than
a plain text search on "process".
Comment 1 Dani Megert CLA 2004-09-15 07:08:19 EDT
Those might be so called potential matches (see Window > Preferences > Workbench
> Search). Do they have (inexact) or (potential) in the name?

Do you have compile errors in those types?
Comment 2 Frederic Fusier CLA 2004-09-15 07:35:02 EDT
Dani was right here. Please set ON compiler option "Malformed Javadoc Comments"
(in Javadoc tab) and then you should see that the reference in @see tag is not
resolved...
If you fix this error, then you should not find this reference again.
Comment 3 Frederic Fusier CLA 2004-09-15 07:46:25 EDT
You can also ignore potential matches by checking Workbench->Search->"Ignore
potential matches" preference.
And then, even without fixing your unresolved reference, you won't have this
unexpected search result...
Comment 4 Frederic Fusier CLA 2004-10-28 06:22:46 EDT
Close as not comment was made on proposed options activation.