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 201306162301) Operating System = Windows 7 version 6.1 running on amd64 Java; VM; Vendor = 1.7.0_21 Runtime = Java HotSpot(TM) 64-Bit Server VM 23.21-b01 I've a Java source code that contains syntax error and is not compilable. I do select the hint "Organize members" and then NetBeans duplicate entire blocks of code. I think that if there is syntax error, the organize members should not even be evaluated (how to know if all necessary } is in place?). See attached video for reference. Thanks, Edson
Created attachment 135993 [details] IDE log
Created attachment 135994 [details] Code duplication video
Fixed: http://hg.netbeans.org/main-silver/rev/276a0081c0bb
Integrated into 'main-silver', will be available in build *201307011244* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/276a0081c0bb User: Jan Lahoda <jlahoda@netbeans.org> Log: #231471: disabling organize imports when the source code contains syntax errors.