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 - Code completion on enum constant implementing interface
Summary: Code completion on enum constant implementing interface
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-13 06:55 UTC by bht
Modified: 2017-02-13 06:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample maven project in zip file (3.19 KB, application/octet-stream)
2017-02-13 06:55 UTC, bht
Details

Note You need to log in before you can comment on or make changes to this bug.
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.