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 186769 - [69cat] "Implement all abstract methods" duplicates class declaration
Summary: [69cat] "Implement all abstract methods" duplicates class declaration
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-26 20:33 UTC by matthies
Modified: 2015-09-17 11:16 UTC (History)
1 user (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 matthies 2010-05-26 20:33:11 UTC
Example:

    public class Test
    {
        class Foo implements Runnable
    }

Applying "implement all abstract methods" on Foo results in:

    public class Test
    {
        class Foo implements Runnable

            public void run()
            {
                throw new UnsupportedOperationException("Not supported yet.");
            }
        class Foo implements Runnable
    }

I.e. "class Foo implements Runnable" is duplicated.
Comment 1 Jan Lahoda 2010-07-12 10:44:13 UTC
I will see what can be done. In the worst case, it might be necessary to disable the hint.
Comment 2 Marian Mirilovic 2012-10-22 13:22:22 UTC
Still reproducible in NB 7.2.1
Comment 3 Jan Lahoda 2013-06-26 09:39:54 UTC
I we want to fix this, then it must be done in the codegen. Only disabling the fix could be done in Java hints.
Comment 4 Martin Balin 2015-09-17 11:16:12 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.