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 231855 - [74cat] Implement all abstract methods does not work for abstract methods in Enum
Summary: [74cat] Implement all abstract methods does not work for abstract methods in ...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-26 15:07 UTC by misterm
Modified: 2013-10-16 02:18 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2013-06-26 15:07:56 UTC
If an enum contains one or more abstract methods, the Implement all abstract methods hint is shown, but does nothing. It should add implementations to all constants.

Product Version = NetBeans IDE Dev (Build 20130626-ac93781533c7)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_07
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.3-b01
Comment 1 Svata Dedic 2013-10-14 10:49:52 UTC
IMHO refactoring that generates abstract methods for all enum's values is conceptually different and should be even named differently, so that the user understands what will happen - not just define one set of methods, but a set replicated for each of the values.
Comment 2 Svata Dedic 2013-10-14 12:27:12 UTC
fixed in http://hg.netbeans.org/jet-main/rev/3c2a440984ef
Comment 3 Quality Engineering 2013-10-16 02:18:58 UTC
Integrated into 'main-silver', will be available in build *201310160001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/3c2a440984ef
User: Svata Dedic <sdedic@netbeans.org>
Log: #231855: for enums, methods are implemented on all declared values