<br><font size=2 face="sans-serif">Thanks a lot! Sorry, that I had no time
to do this myself.</font>
<br>
<br><font size=2 face="sans-serif">One more things about the horrible model
element lifecycle in EMF :(<br>
</font>
<table>
<tr>
<td valign=top><img src=cid:_1_079409480794058C004B071EC1257834>
<td><font size=3>&nbsp; </font>
<td><font size=1 face="Verdana"><b>Thomas Goldschmidt </b><br>
<br>
ABB AG<br>
Forschungszentrum<br>
Wallstadter Straße 59<br>
68526 Ladenburg<br>
Office Phone: +49 6203 716134<br>
Office Fax: +49 6203 716253<br>
e-mail:</font><font size=1 color=blue face="Verdana"> thomas.goldschmidt@de.abb.com</font></table>
<br>
<br><font size=1 color=#808080 face="Verdana">ABB AG<br>
Sitz/Head Office: Mannheim <br>
Registergericht/Registry Court: Mannheim<br>
Handelsregisternummer/Commercial Register No.: HRB 4664<br>
Geschäftsführung/Managing Board: Peter Smits (Vorsitzender), Joachim Schneider,
Markus Ochsner, Hans-Georg Krabbe<br>
Vorsitzender des Aufsichtsrats/Chairman of Supervisory Board: Bernhard
Jucker<br>
<br>
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich
erhalten haben, informieren Sie bitte sofort den Absender und vernichten
Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe
dieser Mail ist nicht gestattet. <br>
<br>
This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any unauthorized
copying, disclosure or distribution of the material in this e-mail is strictly
forbidden.</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Stephan Erb &lt;stephan@dev.static-void.de&gt;</b>
</font>
<br><font size=1 face="sans-serif">Sent by: furcas-discussion-bounces@lists.furcas.org</font>
<p><font size=1 face="sans-serif">11.02.2011 14:37</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">furcas-discussion@lists.furcas.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [furcas-discussion] [IMP] Incremental
Lexer Crashes</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2>For the record: It's fixed in </font></tt><a href="https://github.com/FURCAS-dev/FURCAS/commit/397d33c6ccc9b020041ed68fab741380cdd61a78"><tt><font size=2>https://github.com/FURCAS-dev/FURCAS/commit/397d33c6ccc9b020041ed68fab741380cdd61a78<br>
<br>
On Sat, 2011-02-05 at 15:58 +0100, Stephan Erb wrote:<br>
&gt; Hey Thomas,<br>
&gt; <br>
&gt; the IMP branch contains the first partially working IMP editor (see<br>
&gt; [1]). Unfortunately the incremental lexer is crashing regularly and
I am<br>
&gt; unable to find the cause.<br>
&gt; <br>
&gt; The lexer dies with: <br>
&gt; <br>
&gt; java.lang.ArrayIndexOutOfBoundsException<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at
java.lang.System.arraycopy(Native Method)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at
org.eclipse.emf.common.util.BasicEList.addUnique(BasicEList.java:446)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at
org.eclipse.emf.common.notify.impl.NotifyingListImpl.doAddUnique(NotifyingListImpl.java:393)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at
org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:377)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at
org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:345)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at
com.sap.ide.cts.parser.incremental.IncrementalLexer.addTokenIfNecessaryAndUpdateOffetsAndLengths(IncrementalLexer.java:675)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at
com.sap.ide.cts.parser.incremental.IncrementalLexer.lexPhase(IncrementalLexer.java:528)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at
com.sap.ide.cts.parser.incremental.IncrementalLexer.lex(IncrementalLexer.java:160)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at
com.sap.ide.cts.parser.incremental.antlr.ANTLRIncrementalLexerAdapter.lex(ANTLRIncrementalLexerAdapter.java:301)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at
com.sap.furcas.ide.editor.imp.services.FurcasParseController.parse(FurcasParseController.java:138)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at
com.sap.furcas.ide.editor.commands.ParseCommand.execute(ParseCommand.java:30)<br>
&gt; <br>
&gt; At lines 518 and 519 within the IncrementalLexer we seem to have<br>
&gt; inconsistently versioned TextBlocks: We have a token and its parent<br>
&gt; block within the previous version. Now we map both to the current<br>
&gt; version. However, during this process, the parent child relation seems<br>
&gt; to get lost. The block does no longer contain the token. <br>
&gt; <br>
&gt; Given your experience with all this TextBlocks versioning, any idea<br>
&gt; where I should start digging? <br>
&gt; <br>
&gt; Thanks!<br>
&gt; Stephan<br>
&gt; <br>
&gt; PS: If you want to try it yourself you have to install IMP from<br>
&gt; </font></tt><a href=http://download.eclipse.org/technology/imp/updates/><tt><font size=2>http://download.eclipse.org/technology/imp/updates/<br>
&gt; <br>
&gt; <br>
&gt; [1]<br>
&gt; </font></tt><a href="https://github.com/FURCAS-dev/FURCAS/blob/imp/DSLEngineering/com.sap.furcas.ide.editor/src/com/sap/furcas/ide/editor/imp/"><tt><font size=2>https://github.com/FURCAS-dev/FURCAS/blob/imp/DSLEngineering/com.sap.furcas.ide.editor/src/com/sap/furcas/ide/editor/imp/<br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; Furcas-discussion mailing list<br>
&gt; Furcas-discussion@lists.furcas.org<br>
&gt; </font></tt><a href="http://lists.furcas.org/cgi-bin/mailman/listinfo/furcas-discussion"><tt><font size=2>http://lists.furcas.org/cgi-bin/mailman/listinfo/furcas-discussion<br>
<br>
<br>
_______________________________________________<br>
Furcas-discussion mailing list<br>
Furcas-discussion@lists.furcas.org<br>
</font></tt><a href="http://lists.furcas.org/cgi-bin/mailman/listinfo/furcas-discussion"><tt><font size=2>http://lists.furcas.org/cgi-bin/mailman/listinfo/furcas-discussion<br>
</font></tt></a></a></a></a></a>
<br>