Community
Participate
Working Groups
Got this during line deletion in a grammar. Couldn't reproduce it. java.lang.ArrayIndexOutOfBoundsException at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:516) at java.lang.StringBuffer.append(StringBuffer.java:306) at org.eclipse.jface.text.GapTextStore.get(GapTextStore.java:164) at org.eclipse.jface.text.CopyOnWriteTextStore.get(CopyOnWriteTextStore.java:139) at org.eclipse.jface.text.AbstractDocument.get(AbstractDocument.java:1029) at org.eclipse.xtext.ui.editor.DocumentBasedDirtyResource.copyState(DocumentBasedDirtyResource.java:94) at org.eclipse.xtext.ui.editor.DirtyStateEditorSupport.modelChanged(DirtyStateEditorSupport.java:396) at org.eclipse.xtext.ui.editor.model.XtextDocument.notifyModelListeners(XtextDocument.java:118) at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.afterModify(XtextDocument.java:172) at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.afterModify(XtextDocument.java:1) at org.eclipse.xtext.util.concurrent.AbstractReadWriteAcces.modify(AbstractReadWriteAcces.java:50) at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.modify(XtextDocument.java:181) at org.eclipse.xtext.ui.editor.model.XtextDocument.internalModify(XtextDocument.java:90) at org.eclipse.xtext.ui.editor.reconciler.XtextDocumentReconcileStrategy.reconcile(XtextDocumentReconcileStrategy.java:33) at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler.run(XtextReconciler.java:239) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Moving to JFace text since we just call Document.get() without any additional args.
Dani, could you please elaborate why you think this is an Xtext problem? Is IDocument.get() supposed to throw an AIOOBE in any case?
(In reply to comment #2) > Dani, > > could you please elaborate why you think this is an Xtext problem? Is > IDocument.get() supposed to throw an AIOOBE in any case? Dani's not on this bug.
(In reply to comment #2) > Dani, > > could you please elaborate why you think this is an Xtext problem? Is > IDocument.get() supposed to throw an AIOOBE in any case? We've not seen this before in any other editors and there are no steps to reproduce and investigate this. Feel free to move back if you can reproduce in the Text Editor or if you have more details.
Open for 5 years now without reproduceability. I think we can close it for now and reopen when it happens again.