<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
@ Axel: Could it be, that the strange behavior within the
testCorrectBindingIfElementWasNotBoundBeforeRename testcase has
something to do with the usage of EcoreUtil.delete(), since I use
this method to remove the definition from the model?<br>
<br>
<blockquote style="border: 0px none;"
cite="mid:115E889EC4064A429819C6A9B28052130924013E3A@DEWDFECCR02.wdf.sap.corp"
type="cite">
<div style="margin-left: 40px;">
<hr style="border-width: 1px 0pt 0pt; border-style: dotted none
none; border-color: rgb(181, 181, 181) -moz-use-text-color
-moz-use-text-color; height: 1px; margin: 0pt;"
class="__pbConvHr"><br>
</div>
<table style="padding-top: 5px;" class="__pbConvTable">
<tbody>
<tr>
<td valign="top"><img
src="cid:part1.00000406.05090502@dev.static-void.de"
photoaddress="axel.uhl@sap.com" photoname="Uhl, Axel"
name="compose-unknown-contact.jpg" height="29px"
width="29px"></td>
<td style="padding-left: 5px;" valign="top"><a
moz-do-not-send="true" href="mailto:axel.uhl@sap.com"
style="color: rgb(0, 136, 204) ! important;
text-decoration: none ! important;">Uhl, Axel</a><br>
<font color="#888888">11. Februar 2011 16:05</font></td>
</tr>
</tbody>
</table>
<div style="color: rgb(136, 136, 136); margin-left: 40px;"
__pbrmquotes="true" class="__pbConvBody"><br>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<meta content="Microsoft Word 12 (filtered medium)"
name="Generator">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:70.85pt 70.85pt 56.7pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size: 11pt;
font-family: "Calibri","sans-serif";
color: rgb(31, 73, 125);" lang="EN-US">Yes, Stephan
pointed that out already. As I suggested in my reply, we
may consider avoiding EcoreUtil.delete altogether because
its scope definition is not harmonized with the
OppositeEndFinder's scope definition. I suggest we offer a
delete(EObject) method somewhere that is based on the
OppositeEndFinder's scope. Additionally, even for the
tests, this may have the benefit of re-using an already
attached cross reference adapter.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt;
font-family: "Calibri","sans-serif";
color: rgb(31, 73, 125);" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt;
font-family: "Calibri","sans-serif";
color: rgb(31, 73, 125);" lang="EN-US">-- Axel<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt;
font-family: "Calibri","sans-serif";
color: rgb(31, 73, 125);" lang="EN-US"><o:p> </o:p></span></p>
<div style="border-width: medium medium medium 1.5pt;
border-style: none none none solid; border-color:
-moz-use-text-color -moz-use-text-color -moz-use-text-color
blue; padding: 0in 0in 0in 4pt;">
<div>
<div style="border-width: 1pt medium medium; border-style:
solid none none; border-color: rgb(181, 196, 223)
-moz-use-text-color -moz-use-text-color; padding: 3pt
0in 0in;">
<p class="MsoNormal"><b><span style="font-size: 10pt;
font-family:
"Tahoma","sans-serif";"
lang="EN-US">From:</span></b><span
style="font-size: 10pt; font-family:
"Tahoma","sans-serif";"
lang="EN-US">
<a class="moz-txt-link-abbreviated" href="mailto:furcas-discussion-bounces@lists.furcas.org">furcas-discussion-bounces@lists.furcas.org</a>
[<a class="moz-txt-link-freetext" href="mailto:furcas-discussion-bounces@lists.furcas.org">mailto:furcas-discussion-bounces@lists.furcas.org</a>]
<b>On Behalf Of </b>Thomas Goldschmidt<br>
<b>Sent:</b> Friday, February 11, 2011 3:34 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:furcas-discussion@lists.furcas.org">furcas-discussion@lists.furcas.org</a><br>
<b>Subject:</b> Re: [furcas-discussion] [IMP]
Incremental Lexer Crashes<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><br>
<span style="font-size: 10pt; font-family:
"Arial","sans-serif";">The problem
that links to elements are nur nulled-out when the
element is "deleted", as it was the case in MOIN.</span>
<o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding: 0.75pt;" valign="top">
<p class="MsoNormal"><img
src="cid:part2.05060300.03040909@dev.static-void.de"
id="_x0000_i1025"><o:p></o:p></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal"> <o:p></o:p></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal"><b><span style="font-size:
7.5pt; font-family:
"Verdana","sans-serif";">Thomas
Goldschmidt </span></b><span
style="font-size: 7.5pt; font-family:
"Verdana","sans-serif";"><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:<span style="color: blue;">
<a class="moz-txt-link-abbreviated" href="mailto:thomas.goldschmidt@de.abb.com">thomas.goldschmidt@de.abb.com</a></span></span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p style="margin-bottom: 12pt;" class="MsoNormal"><br>
<br>
<span style="font-size: 7.5pt; font-family:
"Verdana","sans-serif"; color:
gray;"><br>
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.</span> <o:p></o:p></p>
<table style="width: 100%;" class="MsoNormalTable"
width="100%" border="0" cellpadding="0">
<tbody>
<tr>
<td style="width: 24%; padding: 0.75pt;" valign="top"
width="24%">
<p class="MsoNormal"><b><span style="font-size:
7.5pt; font-family:
"Arial","sans-serif";">"Uhl,
Axel" <a class="moz-txt-link-rfc2396E" href="mailto:axel.uhl@sap.com"><axel.uhl@sap.com></a></span></b><span
style="font-size: 7.5pt; font-family:
"Arial","sans-serif";"> </span><o:p></o:p></p>
<p><span style="font-size: 7.5pt; font-family:
"Arial","sans-serif";">11.02.2011
15:05</span> <o:p></o:p></p>
</td>
<td style="width: 75%; padding: 0.75pt;" valign="top"
width="75%">
<p class="MsoNormal"><o:p> </o:p></p>
<table style="width: 100%;" class="MsoNormalTable"
width="100%" border="0" cellpadding="0">
<tbody>
<tr>
<td style="width: 6%; padding: 0.75pt;"
valign="top" width="6%">
<p style="text-align: right;"
class="MsoNormal" align="right"><span
style="font-size: 7.5pt; font-family:
"Arial","sans-serif";">To</span><o:p></o:p></p>
</td>
<td style="width: 93%; padding: 0.75pt;"
valign="top" width="93%">
<p class="MsoNormal"><span style="font-size:
7.5pt; font-family:
"Arial","sans-serif";">Thomas
Goldschmidt/DEABB/ABB@ABB,
<a class="moz-txt-link-rfc2396E" href="mailto:furcas-discussion@lists.furcas.org">"furcas-discussion@lists.furcas.org"</a>
<a class="moz-txt-link-rfc2396E" href="mailto:furcas-discussion@lists.furcas.org"><furcas-discussion@lists.furcas.org></a></span>
<o:p></o:p></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt;" valign="top">
<p style="text-align: right;"
class="MsoNormal" align="right"><span
style="font-size: 7.5pt; font-family:
"Arial","sans-serif";">cc</span><o:p></o:p></p>
</td>
<td style="padding: 0.75pt;" valign="top"><br>
</td>
</tr>
<tr>
<td style="padding: 0.75pt;" valign="top">
<p style="text-align: right;"
class="MsoNormal" align="right"><span
style="font-size: 7.5pt; font-family:
"Arial","sans-serif";">Subject</span><o:p></o:p></p>
</td>
<td style="padding: 0.75pt;" valign="top">
<p class="MsoNormal"><span style="font-size:
7.5pt; font-family:
"Arial","sans-serif";">RE:
[furcas-discussion] [IMP] Incremental
Lexer Crashes</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p style="margin-bottom: 12pt;" class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable" border="0"
cellpadding="0">
<tbody>
<tr>
<td style="padding: 0.75pt;" valign="top"><br>
</td>
<td style="padding: 0.75pt;" valign="top"><br>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><br>
<br>
<br>
<span style="font-family:
"Calibri","sans-serif"; color:
rgb(0, 64, 128);"><br>
Did I miss something? Which of the horrible EMF element
lifecycle aspects was at fault and how?</span> <span
style="font-family:
"Calibri","sans-serif"; color:
rgb(0, 64, 128);"><br>
</span> <span style="font-family:
"Calibri","sans-serif"; color:
rgb(0, 64, 128);"><br>
Cheers,</span> <span style="font-family:
"Calibri","sans-serif"; color:
rgb(0, 64, 128);"><br>
-- Axel</span> <span style="font-family:
"Calibri","sans-serif"; color:
rgb(0, 64, 128);"><br>
</span> <b><span style="font-family:
"Tahoma","sans-serif";"><br>
From:</span></b><span style="font-family:
"Tahoma","sans-serif";">
<a class="moz-txt-link-abbreviated" href="mailto:furcas-discussion-bounces@lists.furcas.org">furcas-discussion-bounces@lists.furcas.org</a>
[<a class="moz-txt-link-freetext" href="mailto:furcas-discussion-bounces@lists.furcas.org">mailto:furcas-discussion-bounces@lists.furcas.org</a>] <b>On
Behalf Of </b>Thomas Goldschmidt<b><br>
Sent:</b> Friday, February 11, 2011 2:40 PM<b><br>
To:</b> <a class="moz-txt-link-abbreviated" href="mailto:furcas-discussion@lists.furcas.org">furcas-discussion@lists.furcas.org</a><b><br>
Subject:</b> Re: [furcas-discussion] [IMP] Incremental
Lexer Crashes</span> <br>
<span style="font-family:
"Arial","sans-serif";"><br>
<br>
Thanks a lot! Sorry, that I had no time to do this
myself.</span> <span style="font-family:
"Arial","sans-serif";"><br>
<br>
One more things about the horrible model element
lifecycle in EMF :(</span> <o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding: 0.75pt;" valign="top">
<p class="MsoNormal"><img
src="cid:part2.05060300.03040909@dev.static-void.de"
id="_x0000_i1026"><o:p></o:p></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal"> <o:p></o:p></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal"><b><span style="font-family:
"Verdana","sans-serif";">Thomas
Goldschmidt </span></b><span
style="font-family:
"Verdana","sans-serif";"><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:<span style="color: blue;">
<a class="moz-txt-link-abbreviated" href="mailto:thomas.goldschmidt@de.abb.com">thomas.goldschmidt@de.abb.com</a></span></span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p><br>
<br>
<span style="font-family:
"Verdana","sans-serif"; color:
gray;"><br>
<br>
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.</span> <o:p></o:p></p>
<table style="width: 100%;" class="MsoNormalTable"
width="100%" border="0" cellpadding="0">
<tbody>
<tr>
<td style="width: 45%; padding: 0.75pt;" valign="top"
width="45%">
<p class="MsoNormal"><b><span style="font-family:
"Arial","sans-serif";">Stephan
Erb <a class="moz-txt-link-rfc2396E" href="mailto:stephan@dev.static-void.de"><stephan@dev.static-void.de></a></span></b><span
style="font-family:
"Arial","sans-serif";"> <br>
Sent by:
<a class="moz-txt-link-abbreviated" href="mailto:furcas-discussion-bounces@lists.furcas.org">furcas-discussion-bounces@lists.furcas.org</a></span>
<o:p></o:p></p>
<p><span style="font-family:
"Arial","sans-serif";">11.02.2011
14:37</span> <o:p></o:p></p>
</td>
<td style="width: 54%; padding: 0.75pt;" valign="top"
width="54%">
<p class="MsoNormal"><o:p> </o:p></p>
<table style="width: 100%;" class="MsoNormalTable"
width="100%" border="0" cellpadding="0">
<tbody>
<tr>
<td style="width: 12%; padding: 0.75pt;"
valign="top" width="12%">
<p style="text-align: right;"
class="MsoNormal" align="right"><span
style="font-family:
"Arial","sans-serif";">To</span><o:p></o:p></p>
</td>
<td style="width: 87%; padding: 0.75pt;"
valign="top" width="87%">
<p class="MsoNormal"><span
style="font-family:
"Arial","sans-serif";"><a class="moz-txt-link-abbreviated" href="mailto:furcas-discussion@lists.furcas.org">furcas-discussion@lists.furcas.org</a></span>
<o:p></o:p></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt;" valign="top">
<p style="text-align: right;"
class="MsoNormal" align="right"><span
style="font-family:
"Arial","sans-serif";">cc</span><o:p></o:p></p>
</td>
<td style="padding: 0.75pt;" valign="top"><br>
</td>
</tr>
<tr>
<td style="padding: 0.75pt;" valign="top">
<p style="text-align: right;"
class="MsoNormal" align="right"><span
style="font-family:
"Arial","sans-serif";">Subject</span><o:p></o:p></p>
</td>
<td style="padding: 0.75pt;" valign="top">
<p class="MsoNormal"><span
style="font-family:
"Arial","sans-serif";">Re:
[furcas-discussion] [IMP] Incremental
Lexer Crashes</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<p><o:p> </o:p></p>
<table class="MsoNormalTable" border="0"
cellpadding="0">
<tbody>
<tr>
<td style="padding: 0.75pt;" valign="top"><br>
</td>
<td style="padding: 0.75pt;" valign="top"><br>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p><br>
<br>
<br>
<span style="font-family: "Courier New";"><br>
<br>
For the record: It's fixed in </span><a
moz-do-not-send="true"
href="https://github.com/FURCAS-dev/FURCAS/commit/397d33c6ccc9b020041ed68fab741380cdd61a78"><span
style="font-family: "Courier New";">https://github.com/FURCAS-dev/FURCAS/commit/397d33c6ccc9b020041ed68fab741380cdd61a78<br>
<br>
On Sat, 2011-02-05 at 15:58 +0100, Stephan Erb wrote:<br>
> Hey Thomas,<br>
> <br>
> the IMP branch contains the first partially
working IMP editor (see<br>
> [1]). Unfortunately the incremental lexer is
crashing regularly and I am<br>
> unable to find the cause.<br>
> <br>
> The lexer dies with: <br>
> <br>
> java.lang.ArrayIndexOutOfBoundsException<br>
> at
java.lang.System.arraycopy(Native Method)<br>
> at
org.eclipse.emf.common.util.BasicEList.addUnique(BasicEList.java:446)<br>
> at
org.eclipse.emf.common.notify.impl.NotifyingListImpl.doAddUnique(NotifyingListImpl.java:393)<br>
> at
org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:377)<br>
> at
org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:345)<br>
> at
com.sap.ide.cts.parser.incremental.IncrementalLexer.addTokenIfNecessaryAndUpdateOffetsAndLengths(IncrementalLexer.java:675)<br>
> at
com.sap.ide.cts.parser.incremental.IncrementalLexer.lexPhase(IncrementalLexer.java:528)<br>
> at
com.sap.ide.cts.parser.incremental.IncrementalLexer.lex(IncrementalLexer.java:160)<br>
> at
com.sap.ide.cts.parser.incremental.antlr.ANTLRIncrementalLexerAdapter.lex(ANTLRIncrementalLexerAdapter.java:301)<br>
> at
com.sap.furcas.ide.editor.imp.services.FurcasParseController.parse(FurcasParseController.java:138)<br>
> at
com.sap.furcas.ide.editor.commands.ParseCommand.execute(ParseCommand.java:30)<br>
> <br>
> At lines 518 and 519 within the IncrementalLexer
we seem to have<br>
> inconsistently versioned TextBlocks: We have a
token and its parent<br>
> block within the previous version. Now we map
both to the current<br>
> version. However, during this process, the parent
child relation seems<br>
> to get lost. The block does no longer contain the
token. <br>
> <br>
> Given your experience with all this TextBlocks
versioning, any idea<br>
> where I should start digging? <br>
> <br>
> Thanks!<br>
> Stephan<br>
> <br>
> PS: If you want to try it yourself you have to
install IMP from<br>
> </span></a><a moz-do-not-send="true"
href="http://download.eclipse.org/technology/imp/updates/"><span
style="font-family: "Courier New";">http://download.eclipse.org/technology/imp/updates/<br>
> <br>
> <br>
> [1]<br>
> </span></a><a moz-do-not-send="true"
href="https://github.com/FURCAS-dev/FURCAS/blob/imp/DSLEngineering/com.sap.furcas.ide.editor/src/com/sap/furcas/ide/editor/imp/"><span
style="font-family: "Courier New";">https://github.com/FURCAS-dev/FURCAS/blob/imp/DSLEngineering/com.sap.furcas.ide.editor/src/com/sap/furcas/ide/editor/imp/<br>
> <br>
> _______________________________________________<br>
> Furcas-discussion mailing list<br>
> Furcas-discussion@lists.furcas.org<br>
> </span></a><a moz-do-not-send="true"
href="http://lists.furcas.org/cgi-bin/mailman/listinfo/furcas-discussion"><span
style="font-family: "Courier New";">http://lists.furcas.org/cgi-bin/mailman/listinfo/furcas-discussion<br>
<br>
<br>
_______________________________________________<br>
Furcas-discussion mailing list<br>
Furcas-discussion@lists.furcas.org</span></a><u><span
style="color: blue;"><br>
</span></u><a moz-do-not-send="true"
href="http://lists.furcas.org/cgi-bin/mailman/listinfo/furcas-discussion"><span
style="font-family: "Courier New";">http://lists.furcas.org/cgi-bin/mailman/listinfo/furcas-discussion</span></a>
<o:p></o:p></p>
</div>
</div>
<div>_______________________________________________<br>
Furcas-discussion mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:Furcas-discussion@lists.furcas.org">Furcas-discussion@lists.furcas.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.furcas.org/cgi-bin/mailman/listinfo/furcas-discussion">http://lists.furcas.org/cgi-bin/mailman/listinfo/furcas-discussion</a><br>
</div>
<hr style="border-width: 1px 0pt 0pt; border-style: dotted none
none; border-color: rgb(181, 181, 181) -moz-use-text-color
-moz-use-text-color; height: 1px; margin: 15px 0pt 0pt;"
class="__pbConvHr"><br>
</div>
<table style="padding-top: 5px;" class="__pbConvTable">
<tbody>
<tr>
<td valign="top"><img
src="cid:part1.00000406.05090502@dev.static-void.de"
photoaddress="thomas.goldschmidt@de.abb.com"
photoname="Thomas Goldschmidt"
name="compose-unknown-contact.jpg" height="29px"
width="29px"></td>
<td style="padding-left: 5px;" valign="top"><a
moz-do-not-send="true"
href="mailto:thomas.goldschmidt@de.abb.com"
style="color: rgb(0, 136, 204) ! important;
text-decoration: none ! important;">Thomas Goldschmidt</a><br>
<font color="#888888">11. Februar 2011 15:34</font></td>
</tr>
</tbody>
</table>
<div style="color: rgb(136, 136, 136); margin-left: 40px;"
__pbrmquotes="true" class="__pbConvBody"><br>
<br>
<font face="sans-serif" size="2">The problem that links to
elements are
nur nulled-out when the element is "deleted", as it was the
case
in MOIN.</font>
<table>
<tbody>
<tr>
<td valign="top"><img moz-do-not-send="true"
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEoAAAAdCAYAAAANW/o+AAACD0lEQVRoge1ZQarCMBDNDbzMh7914Q1Kz1F6A8G14Fa8g+AJxAP0EnoAi1URxcRVoGmTmYmdCV/5i9mU+J7vmddMRqW1Nljd1htj1MgprXXv2X27Q7FsXZer3ucpHHWWm9t6kxxbUURd5gsS0Xk6EzfKVlOURp+aZNgko2KIUhkF/TAS2KhRvthBRNT4cYgxamQeVZUEGzXqPJ1FEVHjxyWmKcok2LBRp+YtotC7Q0LMcTxJgg0aFYodRoSdSpxi7DppbNCopijfIvLF4Xt3FBA7ChEWv695R0GxoxBJNYUUHgnsoFF1lg8iqrNc3KhQxCWwvUY99weWX+S5P4gZ9Sc6cyx2Q2LBJea6XCXF9hqFkVCNsuskxBx/fk2d5d5dK4FNuuv9l8co36RgyI66zBciO6r3ThHG7hmFnXaxRKHTj1OMUe4FVgLbMYpy2r1DJPEegXaVBLZjFDV2sUS++HGLseulsB2jqLGLJfLF72ONum930V8qZn13oPexRoUGdFxE3YHexxp1HE9EjeqOQ7jFtOMtga0osbutN+ZRVU5prXvPsKtPO37cYtoHhgS2wmLnG4xBBe3Mdvy4xbRbEAlshQ3oQp11qLAWw97KOcV0L7ES2AqLCzQq8RXWtNqJApcY378+EtgKmotjw7dQQf2Y7aA5xIRGLRLYClocGzty/AaIqbPcXOYLkaEghP0CmSXE/Ip8c4kAAAAASUVORK5CYII="></td>
<td><font size="3"> </font>
</td>
<td><font face="Verdana" size="1"><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 color="blue" face="Verdana"
size="1"> <a class="moz-txt-link-abbreviated" href="mailto:thomas.goldschmidt@de.abb.com">thomas.goldschmidt@de.abb.com</a></font></td>
</tr>
</tbody>
</table>
<br>
<font size="3"><br>
</font><font color="#808080" face="Verdana" size="1"><br>
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><font size="3"> <br>
<br>
</font>
<table width="100%">
<tbody>
<tr valign="top">
<td width="24%"><font face="sans-serif" size="1"><b>"Uhl,
Axel" <a class="moz-txt-link-rfc2396E" href="mailto:axel.uhl@sap.com"><axel.uhl@sap.com></a></b>
</font>
<p><font face="sans-serif" size="1">11.02.2011 15:05</font><font
size="3">
</font>
</p>
</td>
<td width="75%">
<br>
<table width="100%">
<tbody>
<tr valign="top">
<td width="6%">
<div align="right"><font face="sans-serif"
size="1">To</font></div>
</td>
<td width="93%"><font face="sans-serif" size="1">Thomas
Goldschmidt/DEABB/ABB@ABB,
<a class="moz-txt-link-rfc2396E" href="mailto:furcas-discussion@lists.furcas.org">"furcas-discussion@lists.furcas.org"</a>
<a class="moz-txt-link-rfc2396E" href="mailto:furcas-discussion@lists.furcas.org"><furcas-discussion@lists.furcas.org></a></font><font
size="3">
</font>
</td>
</tr>
<tr valign="top">
<td>
<div align="right"><font face="sans-serif"
size="1">cc</font></div>
</td>
<td>
<br>
</td>
</tr>
<tr valign="top">
<td>
<div align="right"><font face="sans-serif"
size="1">Subject</font></div>
</td>
<td><font face="sans-serif" size="1">RE:
[furcas-discussion] [IMP] Incremental
Lexer Crashes</font></td>
</tr>
</tbody>
</table>
<br>
<br>
<table>
<tbody>
<tr valign="top">
<td>
<br>
</td>
<td><br>
</td>
</tr>
</tbody>
</table>
<br>
</td>
</tr>
</tbody>
</table>
<br>
<font size="3"><br>
<br>
</font><font color="#004080" face="Calibri" size="3"><br>
Did I miss something? Which of the horrible EMF element
lifecycle aspects
was at fault and how?</font><font size="3"> </font><font
color="#004080" face="Calibri" size="3"><br>
</font><font size="3"> </font><font color="#004080"
face="Calibri" size="3"><br>
Cheers,</font><font size="3"> </font><font color="#004080"
face="Calibri" size="3"><br>
-- Axel</font><font size="3"> </font><font color="#004080"
face="Calibri" size="3"><br>
</font><font size="3"> </font><font face="Tahoma" size="3"><b><br>
From:</b> <a class="moz-txt-link-abbreviated" href="mailto:furcas-discussion-bounces@lists.furcas.org">furcas-discussion-bounces@lists.furcas.org</a>
[<a class="moz-txt-link-freetext" href="mailto:furcas-discussion-bounces@lists.furcas.org">mailto:furcas-discussion-bounces@lists.furcas.org</a>]
<b>On Behalf Of </b>Thomas Goldschmidt<b><br>
Sent:</b> Friday, February 11, 2011 2:40 PM<b><br>
To:</b> <a class="moz-txt-link-abbreviated" href="mailto:furcas-discussion@lists.furcas.org">furcas-discussion@lists.furcas.org</a><b><br>
Subject:</b> Re: [furcas-discussion] [IMP] Incremental Lexer
Crashes</font><font size="3">
</font><font face="Times New Roman" size="3"><br>
</font><font size="3"> </font><font face="Arial" size="3"><br>
<br>
Thanks a lot! Sorry, that I had no time to do this myself.</font><font
face="Times New Roman" size="3">
</font><font face="Arial" size="3"><br>
<br>
One more things about the horrible model element lifecycle in
EMF :(</font><font size="3">
</font>
<p>
<table>
<tbody>
<tr>
<td valign="top"><img moz-do-not-send="true"
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEoAAAAdCAYAAAANW/o+AAACD0lEQVRoge1ZQarCMBDNDbzMh7914Q1Kz1F6A8G14Fa8g+AJxAP0EnoAi1URxcRVoGmTmYmdCV/5i9mU+J7vmddMRqW1Nljd1htj1MgprXXv2X27Q7FsXZer3ucpHHWWm9t6kxxbUURd5gsS0Xk6EzfKVlOURp+aZNgko2KIUhkF/TAS2KhRvthBRNT4cYgxamQeVZUEGzXqPJ1FEVHjxyWmKcok2LBRp+YtotC7Q0LMcTxJgg0aFYodRoSdSpxi7DppbNCopijfIvLF4Xt3FBA7ChEWv695R0GxoxBJNYUUHgnsoFF1lg8iqrNc3KhQxCWwvUY99weWX+S5P4gZ9Sc6cyx2Q2LBJea6XCXF9hqFkVCNsuskxBx/fk2d5d5dK4FNuuv9l8co36RgyI66zBciO6r3ThHG7hmFnXaxRKHTj1OMUe4FVgLbMYpy2r1DJPEegXaVBLZjFDV2sUS++HGLseulsB2jqLGLJfLF72ONum930V8qZn13oPexRoUGdFxE3YHexxp1HE9EjeqOQ7jFtOMtga0osbutN+ZRVU5prXvPsKtPO37cYtoHhgS2wmLnG4xBBe3Mdvy4xbRbEAlshQ3oQp11qLAWw97KOcV0L7ES2AqLCzQq8RXWtNqJApcY378+EtgKmotjw7dQQf2Y7aA5xIRGLRLYClocGzty/AaIqbPcXOYLkaEghP0CmSXE/Ip8c4kAAAAASUVORK5CYII="></td>
<td><font face="Times New Roman" size="3"> </font>
</td>
<td><font face="Verdana" size="3"><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 color="blue" face="Verdana"
size="3"> <a class="moz-txt-link-abbreviated" href="mailto:thomas.goldschmidt@de.abb.com">thomas.goldschmidt@de.abb.com</a></font></td>
</tr>
</tbody>
</table>
<br>
<font face="Times New Roman" size="3"><br>
</font><font color="#808080" face="Verdana" size="3"><br>
<br>
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><font face="Times New Roman" size="3"> </font>
</p>
<p>
<table width="100%">
<tbody>
<tr valign="top">
<td width="45%"><font face="Arial" size="3"><b>Stephan
Erb <a class="moz-txt-link-rfc2396E" href="mailto:stephan@dev.static-void.de"><stephan@dev.static-void.de></a></b>
<br>
Sent by: <a class="moz-txt-link-abbreviated" href="mailto:furcas-discussion-bounces@lists.furcas.org">furcas-discussion-bounces@lists.furcas.org</a></font><font
face="Times New Roman" size="3">
</font>
<p><font face="Arial" size="3">11.02.2011 14:37</font><font
face="Times New Roman" size="3">
</font>
</p>
</td>
<td width="54%">
<br>
<table width="100%">
<tbody>
<tr valign="top">
<td width="12%">
<div align="right"><font face="Arial" size="3">To</font></div>
</td>
<td width="87%"><font face="Arial" size="3"><a class="moz-txt-link-abbreviated" href="mailto:furcas-discussion@lists.furcas.org">furcas-discussion@lists.furcas.org</a></font><font
face="Times New Roman" size="3">
</font>
</td>
</tr>
<tr valign="top">
<td>
<div align="right"><font face="Arial" size="3">cc</font></div>
</td>
<td>
<br>
</td>
</tr>
<tr valign="top">
<td>
<div align="right"><font face="Arial" size="3">Subject</font></div>
</td>
<td><font face="Arial" size="3">Re:
[furcas-discussion] [IMP] Incremental
Lexer Crashes</font></td>
</tr>
</tbody>
</table>
<br>
<font face="Times New Roman" size="3"><br>
</font><font size="3"> </font>
<p>
<br>
<table>
<tbody>
<tr valign="top">
<td>
<br>
</td>
<td><br>
</td>
</tr>
</tbody>
</table>
</p>
</td>
</tr>
</tbody>
</table>
<br>
<font face="Times New Roman" size="3"><br>
<br>
</font><font face="Courier New" size="3"><br>
<br>
For the record: It's fixed in </font><a
moz-do-not-send="true"
href="https://github.com/FURCAS-dev/FURCAS/commit/397d33c6ccc9b020041ed68fab741380cdd61a78"><font
color="blue" face="Courier New" size="3"><u>https://github.com/FURCAS-dev/FURCAS/commit/397d33c6ccc9b020041ed68fab741380cdd61a78<br>
<br>
On Sat, 2011-02-05 at 15:58 +0100, Stephan Erb wrote:<br>
> Hey Thomas,<br>
> <br>
> the IMP branch contains the first partially working
IMP editor (see<br>
> [1]). Unfortunately the incremental lexer is
crashing regularly and
I am<br>
> unable to find the cause.<br>
> <br>
> The lexer dies with: <br>
> <br>
> java.lang.ArrayIndexOutOfBoundsException<br>
> at
java.lang.System.arraycopy(Native
Method)<br>
> at
org.eclipse.emf.common.util.BasicEList.addUnique(BasicEList.java:446)<br>
> at
org.eclipse.emf.common.notify.impl.NotifyingListImpl.doAddUnique(NotifyingListImpl.java:393)<br>
> at
org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:377)<br>
> at
org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:345)<br>
> at
com.sap.ide.cts.parser.incremental.IncrementalLexer.addTokenIfNecessaryAndUpdateOffetsAndLengths(IncrementalLexer.java:675)<br>
> at
com.sap.ide.cts.parser.incremental.IncrementalLexer.lexPhase(IncrementalLexer.java:528)<br>
> at
com.sap.ide.cts.parser.incremental.IncrementalLexer.lex(IncrementalLexer.java:160)<br>
> at
com.sap.ide.cts.parser.incremental.antlr.ANTLRIncrementalLexerAdapter.lex(ANTLRIncrementalLexerAdapter.java:301)<br>
> at
com.sap.furcas.ide.editor.imp.services.FurcasParseController.parse(FurcasParseController.java:138)<br>
> at
com.sap.furcas.ide.editor.commands.ParseCommand.execute(ParseCommand.java:30)<br>
> <br>
> At lines 518 and 519 within the IncrementalLexer we
seem to have<br>
> inconsistently versioned TextBlocks: We have a
token and its parent<br>
> block within the previous version. Now we map both
to the current<br>
> version. However, during this process, the parent
child relation seems<br>
> to get lost. The block does no longer contain the
token. <br>
> <br>
> Given your experience with all this TextBlocks
versioning, any idea<br>
> where I should start digging? <br>
> <br>
> Thanks!<br>
> Stephan<br>
> <br>
> PS: If you want to try it yourself you have to
install IMP from<br>
> </u></font></a><a moz-do-not-send="true"
href="http://download.eclipse.org/technology/imp/updates/"><font
color="blue" face="Courier New" size="3"><u>http://download.eclipse.org/technology/imp/updates/<br>
> <br>
> <br>
> [1]<br>
> </u></font></a><a moz-do-not-send="true"
href="https://github.com/FURCAS-dev/FURCAS/blob/imp/DSLEngineering/com.sap.furcas.ide.editor/src/com/sap/furcas/ide/editor/imp/"><font
color="blue" face="Courier New" size="3"><u>https://github.com/FURCAS-dev/FURCAS/blob/imp/DSLEngineering/com.sap.furcas.ide.editor/src/com/sap/furcas/ide/editor/imp/<br>
> <br>
> _______________________________________________<br>
> Furcas-discussion mailing list<br>
> Furcas-discussion@lists.furcas.org<br>
> </u></font></a><a moz-do-not-send="true"
href="http://lists.furcas.org/cgi-bin/mailman/listinfo/furcas-discussion"><font
color="blue" face="Courier New" size="3"><u>http://lists.furcas.org/cgi-bin/mailman/listinfo/furcas-discussion<br>
<br>
<br>
_______________________________________________<br>
Furcas-discussion mailing list<br>
Furcas-discussion@lists.furcas.org</u></font></a><font
color="blue" size="3"><u><br>
</u></font><a moz-do-not-send="true"
href="http://lists.furcas.org/cgi-bin/mailman/listinfo/furcas-discussion"><font
color="blue" face="Courier New" size="3"><u>http://lists.furcas.org/cgi-bin/mailman/listinfo/furcas-discussion</u></font></a><font
size="3">
</font>
</p>
<div>_______________________________________________<br>
Furcas-discussion mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:Furcas-discussion@lists.furcas.org">Furcas-discussion@lists.furcas.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.furcas.org/cgi-bin/mailman/listinfo/furcas-discussion">http://lists.furcas.org/cgi-bin/mailman/listinfo/furcas-discussion</a><br>
</div>
<hr style="border-width: 1px 0pt 0pt; border-style: dotted none
none; border-color: rgb(181, 181, 181) -moz-use-text-color
-moz-use-text-color; height: 1px; margin: 15px 0pt 0pt;"
class="__pbConvHr"><br>
</div>
<table style="padding-top: 5px;" class="__pbConvTable">
<tbody>
<tr>
<td valign="top"><img
src="cid:part1.00000406.05090502@dev.static-void.de"
photoaddress="axel.uhl@sap.com" photoname="Uhl, Axel"
name="compose-unknown-contact.jpg" height="29px"
width="29px"></td>
<td style="padding-left: 5px;" valign="top"><a
moz-do-not-send="true" href="mailto:axel.uhl@sap.com"
style="color: rgb(0, 136, 204) ! important;
text-decoration: none ! important;">Uhl, Axel</a><br>
<font color="#888888">11. Februar 2011 15:05</font></td>
</tr>
</tbody>
</table>
<div style="color: rgb(136, 136, 136); margin-left: 40px;"
__pbrmquotes="true" class="__pbConvBody"><br>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<meta content="Microsoft Word 12 (filtered medium)"
name="Generator">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:70.85pt 70.85pt 56.7pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size: 11pt;
font-family: "Calibri","sans-serif";
color: rgb(31, 73, 125);" lang="EN-US">Did I miss
something? Which of the horrible EMF element lifecycle
aspects was at fault and how?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt;
font-family: "Calibri","sans-serif";
color: rgb(31, 73, 125);" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt;
font-family: "Calibri","sans-serif";
color: rgb(31, 73, 125);" lang="EN-US">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt;
font-family: "Calibri","sans-serif";
color: rgb(31, 73, 125);" lang="EN-US">-- Axel<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt;
font-family: "Calibri","sans-serif";
color: rgb(31, 73, 125);" lang="EN-US"><o:p> </o:p></span></p>
<div style="border-width: medium medium medium 1.5pt;
border-style: none none none solid; border-color:
-moz-use-text-color -moz-use-text-color -moz-use-text-color
blue; padding: 0in 0in 0in 4pt;">
<div>
<div style="border-width: 1pt medium medium; border-style:
solid none none; border-color: rgb(181, 196, 223)
-moz-use-text-color -moz-use-text-color; padding: 3pt
0in 0in;">
<p class="MsoNormal"><b><span style="font-size: 10pt;
font-family:
"Tahoma","sans-serif";"
lang="EN-US">From:</span></b><span
style="font-size: 10pt; font-family:
"Tahoma","sans-serif";"
lang="EN-US">
<a class="moz-txt-link-abbreviated" href="mailto:furcas-discussion-bounces@lists.furcas.org">furcas-discussion-bounces@lists.furcas.org</a>
[<a class="moz-txt-link-freetext" href="mailto:furcas-discussion-bounces@lists.furcas.org">mailto:furcas-discussion-bounces@lists.furcas.org</a>]
<b>On Behalf Of </b>Thomas Goldschmidt<br>
<b>Sent:</b> Friday, February 11, 2011 2:40 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:furcas-discussion@lists.furcas.org">furcas-discussion@lists.furcas.org</a><br>
<b>Subject:</b> Re: [furcas-discussion] [IMP]
Incremental Lexer Crashes<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><br>
<span style="font-size: 10pt; font-family:
"Arial","sans-serif";">Thanks a lot!
Sorry, that I had no time to do this myself.</span> <br>
<br>
<span style="font-size: 10pt; font-family:
"Arial","sans-serif";">One more
things about the horrible model element lifecycle in EMF
:(</span><o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding: 0.75pt;" valign="top">
<p class="MsoNormal"><img moz-do-not-send="true"
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEoAAAAdCAYAAAANW/o+AAACD0lEQVRoge1ZQarCMBDNDbzMh7914Q1Kz1F6A8G14Fa8g+AJxAP0EnoAi1URxcRVoGmTmYmdCV/5i9mU+J7vmddMRqW1Nljd1htj1MgprXXv2X27Q7FsXZer3ucpHHWWm9t6kxxbUURd5gsS0Xk6EzfKVlOURp+aZNgko2KIUhkF/TAS2KhRvthBRNT4cYgxamQeVZUEGzXqPJ1FEVHjxyWmKcok2LBRp+YtotC7Q0LMcTxJgg0aFYodRoSdSpxi7DppbNCopijfIvLF4Xt3FBA7ChEWv695R0GxoxBJNYUUHgnsoFF1lg8iqrNc3KhQxCWwvUY99weWX+S5P4gZ9Sc6cyx2Q2LBJea6XCXF9hqFkVCNsuskxBx/fk2d5d5dK4FNuuv9l8co36RgyI66zBciO6r3ThHG7hmFnXaxRKHTj1OMUe4FVgLbMYpy2r1DJPEegXaVBLZjFDV2sUS++HGLseulsB2jqLGLJfLF72ONum930V8qZn13oPexRoUGdFxE3YHexxp1HE9EjeqOQ7jFtOMtga0osbutN+ZRVU5prXvPsKtPO37cYtoHhgS2wmLnG4xBBe3Mdvy4xbRbEAlshQ3oQp11qLAWw97KOcV0L7ES2AqLCzQq8RXWtNqJApcY378+EtgKmotjw7dQQf2Y7aA5xIRGLRLYClocGzty/AaIqbPcXOYLkaEghP0CmSXE/Ip8c4kAAAAASUVORK5CYII="
id="_x0000_i1025"><o:p></o:p></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal"> <o:p></o:p></p>
</td>
<td style="padding: 0.75pt;">
<p class="MsoNormal"><b><span style="font-size:
7.5pt; font-family:
"Verdana","sans-serif";">Thomas
Goldschmidt </span></b><span
style="font-size: 7.5pt; font-family:
"Verdana","sans-serif";"><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:<span style="color: blue;">
<a class="moz-txt-link-abbreviated" href="mailto:thomas.goldschmidt@de.abb.com">thomas.goldschmidt@de.abb.com</a></span></span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p style="margin-bottom: 12pt;" class="MsoNormal"><br>
<br>
<span style="font-size: 7.5pt; font-family:
"Verdana","sans-serif"; color:
gray;">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.</span> <br>
<br>
<o:p></o:p></p>
<table style="width: 100%;" class="MsoNormalTable"
width="100%" border="0" cellpadding="0">
<tbody>
<tr>
<td style="width: 40%; padding: 0.75pt;" valign="top"
width="40%">
<p class="MsoNormal"><b><span style="font-size:
7.5pt; font-family:
"Arial","sans-serif";">Stephan
Erb <a class="moz-txt-link-rfc2396E" href="mailto:stephan@dev.static-void.de"><stephan@dev.static-void.de></a></span></b><span
style="font-size: 7.5pt; font-family:
"Arial","sans-serif";"> </span><br>
<span style="font-size: 7.5pt; font-family:
"Arial","sans-serif";">Sent
by: <a class="moz-txt-link-abbreviated" href="mailto:furcas-discussion-bounces@lists.furcas.org">furcas-discussion-bounces@lists.furcas.org</a></span>
<o:p></o:p></p>
<p><span style="font-size: 7.5pt; font-family:
"Arial","sans-serif";">11.02.2011
14:37</span> <o:p></o:p></p>
</td>
<td style="width: 59%; padding: 0.75pt;" valign="top"
width="59%">
<table style="width: 100%;" class="MsoNormalTable"
width="100%" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding: 0.75pt;" valign="top">
<p style="text-align: right;"
class="MsoNormal" align="right"><span
style="font-size: 7.5pt; font-family:
"Arial","sans-serif";">To</span><o:p></o:p></p>
</td>
<td style="padding: 0.75pt;" valign="top">
<p class="MsoNormal"><span style="font-size:
7.5pt; font-family:
"Arial","sans-serif";"><a class="moz-txt-link-abbreviated" href="mailto:furcas-discussion@lists.furcas.org">furcas-discussion@lists.furcas.org</a></span>
<o:p></o:p></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt;" valign="top">
<p style="text-align: right;"
class="MsoNormal" align="right"><span
style="font-size: 7.5pt; font-family:
"Arial","sans-serif";">cc</span><o:p></o:p></p>
</td>
<td style="padding: 0.75pt;" valign="top"><br>
</td>
</tr>
<tr>
<td style="padding: 0.75pt;" valign="top">
<p style="text-align: right;"
class="MsoNormal" align="right"><span
style="font-size: 7.5pt; font-family:
"Arial","sans-serif";">Subject</span><o:p></o:p></p>
</td>
<td style="padding: 0.75pt;" valign="top">
<p class="MsoNormal"><span style="font-size:
7.5pt; font-family:
"Arial","sans-serif";">Re:
[furcas-discussion] [IMP] Incremental
Lexer Crashes</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable" border="0"
cellpadding="0">
<tbody>
<tr>
<td style="padding: 0.75pt;" valign="top"><br>
</td>
<td style="padding: 0.75pt;" valign="top"><br>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><br>
<br>
<br>
<tt><span style="font-size: 10pt;">For the record: It's
fixed in </span></tt><a moz-do-not-send="true"
href="https://github.com/FURCAS-dev/FURCAS/commit/397d33c6ccc9b020041ed68fab741380cdd61a78"><tt><span
style="font-size: 10pt;">https://github.com/FURCAS-dev/FURCAS/commit/397d33c6ccc9b020041ed68fab741380cdd61a78</span></tt><span
style="font-size: 10pt; font-family: "Courier
New";"><br>
<br>
<tt>On Sat, 2011-02-05 at 15:58 +0100, Stephan Erb
wrote:</tt><br>
<tt>> Hey Thomas,</tt><br>
<tt>> </tt><br>
<tt>> the IMP branch contains the first partially
working IMP editor (see</tt><br>
<tt>> [1]). Unfortunately the incremental lexer is
crashing regularly and I am</tt><br>
<tt>> unable to find the cause.</tt><br>
<tt>> </tt><br>
<tt>> The lexer dies with: </tt><br>
<tt>> </tt><br>
<tt>> java.lang.ArrayIndexOutOfBoundsException</tt><br>
<tt>> at
java.lang.System.arraycopy(Native Method)</tt><br>
<tt>> at
org.eclipse.emf.common.util.BasicEList.addUnique(BasicEList.java:446)</tt><br>
<tt>> at
org.eclipse.emf.common.notify.impl.NotifyingListImpl.doAddUnique(NotifyingListImpl.java:393)</tt><br>
<tt>> at
org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:377)</tt><br>
<tt>> at
org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:345)</tt><br>
<tt>> at
com.sap.ide.cts.parser.incremental.IncrementalLexer.addTokenIfNecessaryAndUpdateOffetsAndLengths(IncrementalLexer.java:675)</tt><br>
<tt>> at
com.sap.ide.cts.parser.incremental.IncrementalLexer.lexPhase(IncrementalLexer.java:528)</tt><br>
<tt>> at
com.sap.ide.cts.parser.incremental.IncrementalLexer.lex(IncrementalLexer.java:160)</tt><br>
<tt>> at
com.sap.ide.cts.parser.incremental.antlr.ANTLRIncrementalLexerAdapter.lex(ANTLRIncrementalLexerAdapter.java:301)</tt><br>
<tt>> at
com.sap.furcas.ide.editor.imp.services.FurcasParseController.parse(FurcasParseController.java:138)</tt><br>
<tt>> at
com.sap.furcas.ide.editor.commands.ParseCommand.execute(ParseCommand.java:30)</tt><br>
<tt>> </tt><br>
<tt>> At lines 518 and 519 within the
IncrementalLexer we seem to have</tt><br>
<tt>> inconsistently versioned TextBlocks: We have
a token and its parent</tt><br>
<tt>> block within the previous version. Now we map
both to the current</tt><br>
<tt>> version. However, during this process, the
parent child relation seems</tt><br>
<tt>> to get lost. The block does no longer contain
the token. </tt><br>
<tt>> </tt><br>
<tt>> Given your experience with all this
TextBlocks versioning, any idea</tt><br>
<tt>> where I should start digging? </tt><br>
<tt>> </tt><br>
<tt>> Thanks!</tt><br>
<tt>> Stephan</tt><br>
<tt>> </tt><br>
<tt>> PS: If you want to try it yourself you have
to install IMP from</tt><br>
<tt>> </tt></span></a><a moz-do-not-send="true"
href="http://download.eclipse.org/technology/imp/updates/"><tt><span
style="font-size: 10pt;">http://download.eclipse.org/technology/imp/updates/</span></tt><span
style="font-size: 10pt; font-family: "Courier
New";"><br>
<tt>> </tt><br>
<tt>> </tt><br>
<tt>> [1]</tt><br>
<tt>> </tt></span></a><a moz-do-not-send="true"
href="https://github.com/FURCAS-dev/FURCAS/blob/imp/DSLEngineering/com.sap.furcas.ide.editor/src/com/sap/furcas/ide/editor/imp/"><tt><span
style="font-size: 10pt;">https://github.com/FURCAS-dev/FURCAS/blob/imp/DSLEngineering/com.sap.furcas.ide.editor/src/com/sap/furcas/ide/editor/imp/</span></tt><span
style="font-size: 10pt; font-family: "Courier
New";"><br>
<tt>> </tt><br>
<tt>>
_______________________________________________</tt><br>
<tt>> Furcas-discussion mailing list</tt><br>
<tt>> Furcas-discussion@lists.furcas.org</tt><br>
<tt>> </tt></span></a><a moz-do-not-send="true"
href="http://lists.furcas.org/cgi-bin/mailman/listinfo/furcas-discussion"><tt><span
style="font-size: 10pt;">http://lists.furcas.org/cgi-bin/mailman/listinfo/furcas-discussion</span></tt><span
style="font-size: 10pt; font-family: "Courier
New";"><br>
<br>
<br>
<tt>_______________________________________________</tt><br>
<tt>Furcas-discussion mailing list</tt><br>
<tt>Furcas-discussion@lists.furcas.org</tt><br>
</span></a><a moz-do-not-send="true"
href="http://lists.furcas.org/cgi-bin/mailman/listinfo/furcas-discussion"><tt><span
style="font-size: 10pt;">http://lists.furcas.org/cgi-bin/mailman/listinfo/furcas-discussion</span></tt><span
style="font-size: 10pt; font-family: "Courier
New";"><br>
</span></a><o:p></o:p></p>
</div>
</div>
<div>_______________________________________________<br>
Furcas-discussion mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:Furcas-discussion@lists.furcas.org">Furcas-discussion@lists.furcas.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.furcas.org/cgi-bin/mailman/listinfo/furcas-discussion">http://lists.furcas.org/cgi-bin/mailman/listinfo/furcas-discussion</a><br>
</div>
</div>
</blockquote>
</body>
</html>