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 218318 - [73cat] Implement abstract methods add spurious ;
Summary: [73cat] Implement abstract methods add spurious ;
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: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-13 20:17 UTC by misterm
Modified: 2012-10-19 13:38 UTC (History)
0 users

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 2012-09-13 20:17:08 UTC
In an enum like:

enum E {
  E1 {
  },
  E2;

  abstract int m();
}

if one goes to the contents of E1 and invokes Alt + Insert -> Implement method and choose m(), a spurious ; is also generated before the overridden method. I've also seen something similar in anonymous inner classes which inherit from superclasses with no default constructors; it seems worse there, but I can't isolate the code.

Product Version = NetBeans IDE Dev (Build 20120903-b205afccf642)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_01
Runtime = Java HotSpot(TM) 64-Bit Server VM 21.1-b02
Comment 1 Jan Lahoda 2012-10-19 05:43:19 UTC
Fixed:
http://hg.netbeans.org/jet-main/rev/203ae8a3c67b
Comment 2 Quality Engineering 2012-10-19 13:38:54 UTC
Integrated into 'main-golden', will be available in build *201210191216* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/203ae8a3c67b
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #218318: do not generate the inferred ';' for enum constants with body.