Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 357203

Summary: Stackoverflow exception in xtend editor when adding a comment
Product: [Modeling] TMF Reporter: Bernd Kolb <b.kolb>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: Holger.Schill, moritz.eysholdt, sven.efftinge
Version: unspecifiedFlags: sven.efftinge: indigo+
Target Milestone: SR2   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Bernd Kolb CLA 2011-09-09 04:28:37 EDT
Build Identifier: 2.0.1

java.lang.StackOverflowError
	at org.eclipse.jface.text.AbstractDocument.computeIndexInCategory(AbstractDocument.java:537)
	at org.eclipse.jface.text.rules.FastPartitioner.getPartition(FastPartitioner.java:484)
	at org.eclipse.jface.text.rules.FastPartitioner.getPartition(FastPartitioner.java:592)
	at org.eclipse.jface.text.AbstractDocument.getPartition(AbstractDocument.java:1495)
	at org.eclipse.jface.text.AbstractDocument.getPartition(AbstractDocument.java:966)
	at org.eclipse.xtext.ui.editor.model.DocumentUtil.findNextOffSetInPartition(DocumentUtil.java:86)
	at org.eclipse.xtext.ui.editor.model.DocumentUtil.findNextOffSetInPartition(DocumentUtil.java:91)
	at org.eclipse.xtext.ui.editor.model.DocumentUtil.findNextOffSetInPartition(DocumentUtil.java:91)
	at org.eclipse.xtext.ui.editor.model.DocumentUtil.findNextOffSetInPartition(DocumentUtil.java:91)
	at org.eclipse.xtext.ui.editor.model.DocumentUtil.findNextOffSetInPartition(DocumentUtil.java:91)
	at org.eclipse.xtext.ui.editor.model.DocumentUtil.findNextOffSetInPartition(DocumentUtil.java:91)
	at org.eclipse.xtext.ui.editor.model.DocumentUtil.findNextOffSetInPartition(DocumentUtil.java:91)
	at org.eclipse.xtext.ui.editor.model.DocumentUtil.findNextOffSetInPartition(DocumentUtil.java:91)
	at org.eclipse.xtext.ui.editor.model.DocumentUtil.findNextOffSetInPartition(DocumentUtil.java:91)
	at org.eclipse.xtext.ui.editor.model.DocumentUtil.findNextOffSetInPartition(DocumentUtil.java:91)
	at org.eclipse.xtext.ui.editor.model.DocumentUtil.findNextOffSetInPartition(DocumentUtil.java:91)
	at org.eclipse.xtext.ui.editor.model.DocumentUtil.findNextOffSetInPartition(DocumentUtil.java:91)
	at org.eclipse.xtext.ui.editor.model.DocumentUtil.findNextOffSetInPartition(DocumentUtil.java:91)
	at org.eclipse.xtext.ui.editor.model.DocumentUtil.findNextOffSetInPartition(DocumentUtil.java:91)
	at org.eclipse.xtext.ui.editor.model.DocumentUtil.findNextOffSetInPartition(DocumentUtil.java:91)
	at org.eclipse.xtext.ui.editor.model.DocumentUtil.findNextOffSetInPartition(DocumentUtil.java:91)
	at org.eclipse.xtext.ui.editor.model.DocumentUtil.findNextOffSetInPartition(DocumentUtil.java:91)
	at org.eclipse.xtext.ui.editor.model.DocumentUtil.findNextOffSetInPartition(DocumentUtil.java:91)
	at org.eclipse.xtext.ui.editor.model.DocumentUtil.findNextOffSetInPartition(DocumentUtil.java:91)
	at org.eclipse.xtext.ui.editor.model.DocumentUtil.findNextOffSetInPartition(DocumentUtil.java:91)
	at org.eclipse.xtext.ui.editor.model.DocumentUtil.findNextOffSetInPartition(DocumentUtil.java:91)
	at org.eclipse.xtext.ui.editor.model.DocumentUtil.findNextOffSetInPartition(DocumentUtil.java:91)
	at org.eclipse.xtext.ui.editor.model.DocumentUtil.findNextOffSetInPartition(DocumentUtil.java:91)
	at org.eclipse.xtext.ui.editor.model.DocumentUtil.findNextOffSetInPartition(DocumentUtil.java:91)
	at org.eclipse.xtext.ui.editor.model.DocumentUtil.findNextOffSetInPartition(DocumentUtil.java:91)
	at org.eclipse.xtext.ui.editor.model.DocumentUtil.findNextOffSetInPartition(DocumentUtil.java:91)
...

Reproducible: Always

Steps to Reproduce:
1. create a new xtend method with some content
2. add a /* in the method body
3. got to the end of the method and try to add */
Comment 1 Holger Schill CLA 2011-09-12 07:29:40 EDT
Can not reproduce the described problem. Could you please attach a sample Xtend-Class?
Comment 2 Bernd Kolb CLA 2011-09-12 08:02:36 EDT
Strange... I cannot reproduce it either. I restarted Eclipse meanwhile and unfortunately I do not remember the place where it happened. Just close it and I'll reopen if it occurs again.
Comment 3 Moritz Eysholdt CLA 2011-09-29 08:56:23 EDT

*** This bug has been marked as a duplicate of bug 358555 ***