This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 252214 - Go to implementation doesn't find JDK implementations
Summary: Go to implementation doesn't find JDK implementations
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-03 12:15 UTC by cezariusz
Modified: 2015-05-03 12:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Map.values implementations (9.80 KB, image/png)
2015-05-03 12:15 UTC, cezariusz
Details
Map.values implementations in Eclipse (57.60 KB, image/png)
2015-05-03 12:21 UTC, cezariusz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cezariusz 2015-05-03 12:15:09 UTC
Created attachment 153499 [details]
Map.values implementations

Product Version: NetBeans IDE Dev (Build 201505020001)
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14
System: Windows 7 version 6.1 running on amd64; UTF-8; pl_PL (nb)

1. "Go to Implementation" doesn't find JDK implementations of Map interface methods.
2. "Go to Implementation" is missing from the main "Navigate" menu - it's only available in the context menu, thus it's harder to find.

Test case:
import java.util.HashMap;
import java.util.Map;

public class GoToImplementation {

    public void demo() {
        Map<String, String> map = new HashMap<>();
        map.values();
    }

}

Invoke "Go to Implementation" on map.values:
* Expected result: all implementations, including HashMap.values()
* Actual result:
  - Map interface declaration, which is not an implementation and shouldn't be on this list at all
  - two openide implementations, even if it's a standard Java SE project (ANT based).
Comment 1 cezariusz 2015-05-03 12:21:00 UTC
Created attachment 153500 [details]
Map.values implementations in Eclipse

The same action on the same file in the same project opened in Eclipse shows all JRE implementations.