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.
[ BUILD # : d5b5aa729233 ] [ JDK VERSION : 1.6.20 ] The hint to generate getters and setters should create the methods in the same order as fields are declared.
It looks to me a really good candidate for NetFIX[1] program. Any objection from you in review a future patch? [1] http://wiki.netbeans.org/NetFIX
Created attachment 103198 [details] Simple patch I've made a little change which make it works as expected when generating the code but now it affects the UI too. The fields are shown now in the same order they are declared and will have their methods created. It will reflects as well for toString generation.
Dusane, can you please review & integrate the patch if you think it's okay? Thanks!
I don't think the patch is OK - elements (methods, fields) should stay sorted alphabetically in the UI IMHO (otherwise, e.g. finding a proper method to override from the JTextComponent becomes quite difficult).
Comment on attachment 103198 [details] Simple patch No problem. I will work more on it soon. Thanks.
Looks like the latest redesign of code generation has fixed it. Thanks guys. v. Build 20120328-c92916a691a0