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 Platform Dev (Build 201103040000) Java: 1.6.0_24; Java HotSpot(TM) Client VM 19.1-b02 System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (test) Steps to reproduce: -create new j2se project -type following line to the main method of the main class: FileReader fr = new FileReader(""); -go with the cursor to that line -push alt-enter and enter the "Add import for java.io.FileReader" -push again alt-enter and select "Surround Statement with try-catch" -->> Cursor appears in import section which is annoying. This used to work properly in NB6.9 - adding the "REGRESSION" kw.
Oops: http://hg.netbeans.org/jet-main/rev/9444eedb9ef4
Integrated into 'main-golden', will be available in build *201103080000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/9444eedb9ef4 User: Jan Lahoda <jlahoda@netbeans.org> Log: #196384: Utilities.commitAndComputeChangeInfo shouldn't move the caret when a tag is specified, but no tree is marked with the tag.