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.
NB 20071023000000, WinXPSP2, 1.6.0_05. If you have this code: public class TestInsertLocation { private String propertyName; //////////////////////////////////////////////////////////////////// // Getters and Setters | } and place the cursor below the Getters and Setters comment, then invoke code generation (alt-insert), select Getters and Setters, select propertyName and press OK, you get: public class TestInsertLocation { private String propertyName; public String getPropertyName() { return propertyName; } public void setPropertyName(String propertyName) { this.propertyName = propertyName; } //////////////////////////////////////////////////////////////////// // Getters and Setters } The code is inserted above the comment instead of below it. Georg
Seems that comments (inline or block) are not respected by insert-code action.
Overtake.
Resolving all issues with milestone "future" as LATER. If you feel strongly that it should be implemented please reopen and set the target milestone to "next".
I know it is only a minor annoyance, and, maybe it is a bit hard to fix. Pros: - It would be one bug less (NB as about 20000 open bugs in all, Eclipse about 30000 - 35000, although the Eclipse code base is much larger). - One step nearer to adhering to the Zero Inbox principle (which translates to Zero [Known] Bugs principle). - Give the submitter the warm feeling that somebody actually cares. - All my Java sources are split into sections (predefined in file templates), the sections are separated by comments. One of these sections is // Getters and Setters. When I generate the first getter/setter pair it always ends up above the comment instead of below it and I have to correct this manually each time. Cons: - I have been doing this for years, I can tolerate doing it for a few more years to come. - Nobody actually cares about P4 bugs, anyway. - There are more than 500 open P1 bugs, let's evualate, close or fix those first. I take the last one. Now if you promise to fix one of those long-term P1 bugs in NB issuezilla instead of this one...
NetBeans.org Migration: changing resolution from LATER to WONTFIX