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 271633 - Override method does not work for enum constants
Summary: Override method does not work for enum constants
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Dusan Balek
Depends on:
Reported: 2017-10-13 05:02 UTC by _ gtzabari
Modified: 2018-01-18 21:33 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2017-10-13 05:02:17 UTC
Product Version: NetBeans IDE Dev (Build 201710110002)
Java: 9; Java HotSpot(TM) 64-Bit Server VM 9+181
Runtime: Java(TM) SE Runtime Environment 9+181
System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev

1. Given:

public enum Characters

	 * Execute a secret handshake with the character.
	abstract void secretHandshake();

2. Place caret inside the HARRY_POTTER block, hit CTRL+SPACE, and select "secretHandshake() - override".

3. Notice that no method is generated.

Expected behavior: Editor should insert a method that overrides secretHandshake().
Comment 1 dtrebbien 2018-01-13 01:20:24 UTC
This issue has been migrated to JIRA:
Comment 2 dtrebbien 2018-01-18 21:33:56 UTC
PR 364 has been merged.