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.
[dev mar 07] Create a build of the IDE with -Dmodules=java and start on a fresh user dir. MDI mode. Mount a fresh directory and select its root. Select File | New | Classes | Class. Create file Foo in the default package. When it appears, it is corrupted: see attachment. Sometimes the extra "public " does not appear, but the broken comment does. Creating a file in a non-default package works OK. It is reproducible, but only when the editor module is *not* enabled. So I suspect that the code generator does not work correctly with the Swing plain-text editor kit (I use JDK 1.3.1_02) and is accidentally dependent on some detail of the NetBeans editor's Document implementation. Should be checked against Emacs (externaleditor) as well.
Created attachment 4987 [details] Generated class
Yes, you are right. There is difference in Swing implementation and Edtor implementation. See isuue #14546. I guess this issue is duplicate of 14546.
*** This issue has been marked as a duplicate of 14546 ***
Resolved for 3.4.x or earlier, no new info since then -> closing.