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 issue was reported manually by pjiricka. It already has 1 duplicates Build: NetBeans IDE 7.2 Beta (Build 201204260929) VM: Java HotSpot(TM) 64-Bit Server VM, 20.2-b06, Java(TM) SE Runtime Environment, 1.6.0_27-b07 OS: Linux User Comments: mjanicek: Using hint changing the call for NbBundle.getMessage to the annotation @Message Stacktrace: javax.swing.text.BadLocationException: Wrong (offset+length)=2362 > getLength()=2361 at org.netbeans.editor.BaseDocument.handleRemove(BaseDocument.java:921) at org.netbeans.editor.BaseDocument$FilterBypassImpl.remove(BaseDocument.java:2404) at javax.swing.text.DocumentFilter.remove(DocumentFilter.java:51) at org.openide.text.CloneableEditorSupport$DocFilter.remove(CloneableEditorSupport.java:3021) at org.netbeans.editor.BaseDocument.remove(BaseDocument.java:901) at org.netbeans.api.java.source.ModificationResult.processDocumentLocked(ModificationResult.java:403)
Created attachment 120841 [details] stacktrace
It looks it was called in read-only file or in a guarded block.
In my case, this error happens in a editable block.
Created attachment 129832 [details] stacktrace Used "Use NBBundle.Message" hint to convert @ActionRegistration(displayName="#xxx")
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=189494
I can confirm this issue too. The whole file was editable. No guarding blocks.
Created attachment 130013 [details] stacktrace
Created attachment 132265 [details] stacktrace
Integrated into 'main-golden', will be available in build *201306100004* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/7c9786937812 User: Jan Lahoda <jlahoda@netbeans.org> Log: #214197: when diffing resources, ensure content is taken from the document if it exists, as that is what we have passed to the hint originally, and also its the place where the content will be committed to.
Should be fixed by the above changeset.