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.
Product Version: NetBeans IDE Dev (Build 201012150001) Java: 1.6.0_23; Java HotSpot(TM) Client VM 19.0-b09 System: Windows 7 version 6.1 running on x86; Cp1252; en_CA (nb) Notice in the attached files how Netbeans removes a "break" statement in a switch-block when "encapsulate field" is invoked. This kind of bug will silently break code and will be very hard to track down.
Created attachment 104565 [details] Class before modification
Created attachment 104566 [details] Class after modification
Integrated into 'main-golden', will be available in build *201012290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/a73061f8d0a7 User: Jan Lahoda <jlahoda@netbeans.org> Log: #193883: ImmutableTreeTranslator.optimize should not strip statements following a block.
Fixed by the above commit. Thanks for the report.