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.
If I use the wizard (right mouse click on methods and then "Add Method") to add a new method or a method is being added through synchronization, NetBeans makes a little mistake. For my methods, I have a comment after the "}" that ends a method like this: public void oldMethod() { ... } // oldMethod Now the Add Method function of NetBeans adds the new method between the "}" of the last method and its comment like this: } public void newMethod() { } // oldMethod It should rather add the new method in the next line after the line with the "}" of the last method and a blank line. The source was not loaded in the editor, when I used the wizard, so it had nothing to do with the cursor position. Using NetBeans 3.3 with JDK 1.4 B3.
AFAIK, this is done by Java module. Reassign back if I am wrong.
I'm afraid this is not a bug. It is not clear, if the comment is part of the method (from parser point of view :).
OK, if it's not a bug, then can you please enhance it? ;-)
Cleaning up before 4.0 planning
Target milestone was changed from not determined to TBD
Wizard was removed.