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.
I used the new class wizard to create a class that extended a base class. I specified the methods to override in the wizard. But, when I clicked "Finish" a box popped up asking me if I wanted to reconcile my new class with my base class. I clicked "Process All" and it (I assume it did) inserted a duplicate method. I'll attach the base and new classes.
Created attachment 3650 [details] the new class
Created attachment 3651 [details] the base class
BTW: the name of the box that came up was the "Confirm Changes" dialog box. Just a thought, but maybe it had something to do with the fact that ByteBuffer wasn't in the import statement list. (I can't think of another reason why I'd be asked to add the same method twice, unless it is a timing issue.) Also, I've found that this is repeatable. It has happened every time I've tried this with the new wizard.
-> java module
This behaviour is "as designed" (that's why I am turning the issue into a feature request -- it's a known deficiency of the design) although it may seem strange. And yes, it is connected to the missing import. The IDE should insert the method with fully qualified parameter's type, but the infrastructure is not mature enough to allow such things. As the existing method's parameter type is not resolved, it is treated as distinct from the base class' resolved one - that's why a new method is inserted. Tentatively setting milestone to 3.4, but the solution depends on name resolver implementation.
Cleaning up before 4.0 planning
Target milestone was changed from not determined to TBD
*** Issue 29841 has been marked as a duplicate of this issue. ***
This issue is no longer relevant.