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 269806

Summary: Code completion on enum constant implementing interface
Product: java Reporter: bht <bht>
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: Sample maven project in zip file

Description bht 2017-02-13 06:55:55 UTC
Created attachment 163618 [details]
Sample maven project in zip file

With an enum implementing an interface, @Override is coded on each enum constant.

In a static method in the same enum class , the enum is used with a method of that interface.

On that method call, with [Ctrl+hover], the editor shows the hint:

"Ctrl+Alt+Click Navigates to Implementing Methods"

When following the hint, one would expect to get a selection of the enum constants implemening the interface. However, no selection is presented, and the only choice is to go to the interface.

Please refer to the attached sample project.