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 186833 - [69cat] "Implement method" doesn't work correctly in body of enum constant
Summary: [69cat] "Implement method" doesn't work correctly in body of enum constant
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-27 18:16 UTC by matthies
Modified: 2011-01-06 19: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 matthies 2010-05-27 18:16:45 UTC
EXample:

    public enum Test {

        FOO {},
        BAR,
        BAZ;

        public abstract void f();
    }

Invoking CC within the empty pair of braces and selecting "f() - implement" results in:

    public enum Test {

        FOO {},
        BAR,
        BAZ;
    FOO {

            @Override
            public void f()
            {
                throw new UnsupportedOperationException("Not supported yet.");
            }
     },
        BAR,
        BAZ;

        public abstract void f();
    }
Comment 1 Dusan Balek 2010-06-07 09:50:50 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/65cb5994d302
Comment 2 Quality Engineering 2010-06-08 06:08:30 UTC
Integrated into 'main-golden', will be available in build *201006080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/65cb5994d302
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #186833: "Implement method" doesn't work correctly in body of enum constant - fixed.
Comment 3 matthies 2011-01-06 19:38:49 UTC
Verified in build 201101040001.