Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8355547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:53:47+00:00 2026-06-09T09:53:47+00:00

Under Window > Preferences > General > Search , there is the option Ignore

  • 0

Under Window > Preferences > General > Search, there is the option Ignore potential matches

What does it do? Whether I activate it or not, I never see a difference.

Is it an option that only makes sense for Java development (which I never do, but I do develop in C, Python and PHP using Eclipse)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T09:53:49+00:00Added an answer on June 9, 2026 at 9:53 am

    See bug 127442 for examples: depending on what you are searching (a class, a method, …), the Search engine can find instances which could match (but it cannot say for certain).

    Those instances are marked “POTENTIAL_MATCH“:

    A method with different number of parameters is not a potential match.

    (see bug 97322 )

    A potential match is a match where the resolution failed (e.g. the method binding is null).
    If the user searches for “foo(String)” (without qualifying String), then “foo(java.lang.String)” and “foo(p.String)” are both exact matches.

    For the .class file case, I think we can only have potential matches in the case of the missing type case (see bug 196200), i.e if the .class file was compiled and some types it references were missing.


    A current example of potential match misbehavior is found in bug 382778:

    I have a public static void method printIt(String name).
    When I open its call hierarchy, some callers are missing.

    I am guessing the callers are missing because java search marks them as potential instead of exact matches for the printIt(String) reference.
    The following code is sometimes marked as potential, and sometimes exact:

    // Listing 1
    PublicInterface2 impl2 = new Impl2("Name Broken");
    Static.printIt(impl2.getName());
    

    When the search result is marked potential, the caller is missing from the printIt() call hierarchy.

    PublicInterface2 is an empty public interface which extends PackageInterface2Getters.
    PackageInterface2Getters is an empty default-scoped interface which extends PackageInterface1Getters.
    PackageInterface1Getters is a default-scoped interface which declares String getName().
    

    So impl2.getName() above returns a String.

    There are some problems reported which I guess make the matches be marked as potential:

    ...
    Filename : \D:\workspace\eclipse\_runtimes\jdt\call-hierarchy-bug\src\main\PublicInterface2.java
    COMPILED type(s)    
    2 PROBLEM(s) detected 
         - Pb(2) PackageInterface1Getters cannot be resolved to a type
         - Pb(327) The hierarchy of the type PublicInterface2 is inconsistent
    

    Turns out that:

    The compiler asks the “NameEnvironment” to get the type information of any dependent type.
    Search has it’s own NameEnvironment implementation in JavaSearchNameEnvironment and it is not looking for secondary types.
    This is bad and it is surprising that we haven’t run into this problem until now.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I there any method to sleep the thread upto 100.8564 millisecond under window OS.
I defined a classpath variable called shared_src in Eclipse under: Window->Preferences->Java->Build Path->Classpath Variables The
I have a WPF window, which contains a button called Cancel. Under ordinary circumstances
I have a Mac OS application with a preferences window with a NSToolbar on
In Eclipse 3.5, under Windows -> Preferences -> Java > Editor -> Templates, I
Under Windows 7 I have a batch file for checking the status of some
Under Windows, I have used a program called Dependency Walker to examine the libraries
Under windows, this F# code will extend a file from say 12 bytes out
I am creating screenshots under Windows and using the LockBits function from GDI+ to
I have IIS running under Windows XP. I have .html files with classic ASP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.