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.
Build: NetBeans IDE Dev (Build 20111016-9758c971c169) VM: OpenJDK 64-Bit Server VM, 20.0-b11, OpenJDK Runtime Environment, 1.6.0_22-b22 OS: Linux User Comments: jlahoda: Running with the patch attached to http://netbeans.org/bugzilla/show_bug.cgi?id=51924: http://netbeans.org/bugzilla/show_bug.cgi?id=51924 Doing "Cut" on the very last line of the document. Stacktrace: java.lang.IllegalArgumentException: bad position: 118 at javax.swing.text.JTextComponent.setCaretPosition(JTextComponent.java:1664) at org.netbeans.editor.BaseKit$CutAction$1.run(BaseKit.java:1973) at org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:344) at org.netbeans.editor.BaseKit$CutAction.actionPerformed(BaseKit.java:1934) at org.netbeans.modules.java.editor.imports.ClipboardHandler$JavaCutAction.access$1001(ClipboardHandler.java:539) at org.netbeans.modules.java.editor.imports.ClipboardHandler$JavaCutAction$1.run(ClipboardHandler.java:554)
Created attachment 112122 [details] stacktrace
Created attachment 112183 [details] Corrected the BadLocationException for the Cut-Action The cut-action now behaves like in IntelliJ, that the cursor jumps to the first position of the line following the line cutted off (no more BadLocationExceptions possible ;-))
Already Fixed in https://netbeans.org/bugzilla/show_bug.cgi?id=51924