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.
This bug was originally marked as duplicate of bug 213179, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 8.0.1 (Build 201408251540) VM: Java HotSpot(TM) 64-Bit Server VM, 25.5-b02, Java(TM) SE Runtime Environment, 1.8.0_05-b13 OS: Windows 8 User Comments: GUEST: . Stacktrace: javax.swing.text.BadLocationException: Wrong insert position 11842 at org.netbeans.editor.BaseDocument.handleInsertString(BaseDocument.java:771) at org.netbeans.editor.BaseDocument$FilterBypassImpl.insertString(BaseDocument.java:2497) at javax.swing.text.DocumentFilter.insertString(DocumentFilter.java:100) at org.openide.text.CloneableEditorSupport$DocFilter.insertString(CloneableEditorSupport.java:2366) at org.netbeans.editor.BaseDocument.insertString(BaseDocument.java:755) at org.netbeans.api.java.source.ModificationResult.processDocumentLocked(ModificationResult.java:430)
Created attachment 150473 [details] stacktrace
The error came from form (guibuilder).
Form uses java source for renaming a field, it does not access the document directly. The exception is from writing the result by ModificationResult, seems like a java source problem. Might also be caused by o.n.m.java.source.queriesimpl.JavaOperationsImpl.renameField() if it produces something strange. See also the message log http://statistics.netbeans.org/exceptions/messageslog?id=779696 which shows other error and prints the document the user was editing. But I guess this is hardly possible to diagnose without being able to reproduce...