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 got: // Bean descriptor /*lazy BeanDescriptor*/ private static BeanDescriptor getBdescriptor(){ BeanDescriptor beanDescriptor = new BeanDescriptor ( org.netbeans.modules.diff.builtin.provider.BuiltInDiffProvider.class , null ); // NOI18N // Here you can add code for customizing the BeanDescriptor. return beanDescriptor; } Expected behaviour: ending bracket is on new line.
This problem originates in JavaEditor. Its 'setBottom' method is used to insert guarded sections containing return statement followed by '}', however, these sections are forced to consists of one line only - needed new line characters are correctly generated by the beans module, but removed by 'setBottom'.
*** Issue 128964 has been marked as a duplicate of this issue. ***
It should be fixed by migrating to java.source generator.
NetBeans.org Migration: changing resolution from LATER to WONTFIX