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

Summary: Go to implementation doesn't find JDK implementations
Product: java Reporter: cezariusz <cezariusz>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Map.values implementations
Map.values implementations in Eclipse

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.