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 186841 - [69cat] Instant Rename on enum method doesn't consider subclass implementations
Summary: [69cat] Instant Rename on enum method doesn't consider subclass implementations
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Jan Jancura
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-27 20:02 UTC by matthies
Modified: 2011-01-06 19:30 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 20:02:18 UTC
Example:

    public class Example
    {
        private enum Foo
        {
            FOO { void m() { } };

            abstract void m();
        }
    }

Instant Rename on the abstract m() renames the method without also renaming the implementation in FOO. This also happens when m() has a default implementation instead of being abstract.
Comment 1 Jan Jancura 2010-06-02 11:09:24 UTC
reproducible
Comment 2 Jan Jancura 2010-06-02 15:29:17 UTC
fixed in jet-main: http://hg.netbeans.org/jet-main/rev/d6b0adced0c0
Comment 3 Quality Engineering 2010-06-03 06:12:47 UTC
Integrated into 'main-golden', will be available in build *201006030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/d6b0adced0c0
User: Jan Jancura<jjancura@netbeans.org>
Log: #186841: [69cat] Instant Rename on enum method doesnt consider subclass implementations
Comment 4 matthies 2011-01-06 19:30:10 UTC
Verified in build 201101040001, but now the rename is unnecessarily not "instant" any more, see issue 194102.