NetBeans IDE 8.2 Dev (Build 201607090002)
In Java, if the value used for "Go to Type" has multiple matches, where the entered value has a perfect match, and another much weaker match where substrings of the entered value match a larger name, then very often, the weaker match is focused, leading to incorrect selections.
Entered value: JdbcTeamTypeDao
Perfect match: JdbcTeamTypeDao
Weak match: JdbcTeamServiceTypeDao
Focused, selected value: JdbcTeamServiceTypeDao
List order: JdbcTeamServiceTypeDao, JdbcTeamTypeDao
It appears that the current algorithm is the selection of the first member of an alphabetically orderd list which is often wrong.
Added a possibility to switch the ordering to "Similarity" (levenshtein distance from the entered text to found item).
The ordering can be changed in the Tools/Options/Editor/Go To.
The default is kept unchanged - alphabetical sort, you need to change the option.
Fixed jet-main http://hg.netbeans.org/jet-main/rev/8f3a3358b27f
Integrated into 'main-silver', will be available in build *201705180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Tomas Zezula <firstname.lastname@example.org>
Log: #262819:Go to Type Selection Order misleading