Incorrect references when serializing xtext model [message #1687252] |
Thu, 19 March 2015 11:23  |
Eclipse User |
|
|
|
Hi,
I observed the following behavior which I suspect is a bug:
1) I open a model in the sample reflective ecore editor. This model has no external references, has internal references, is valid, and is currently persisted in a format defined though xtext.
2) I save this model as xmi (modeltype extension).
The resulting model is invalid. The internal dependencies (references) still point to the original xtext objects.
If, between steps 1 and 2 I execute a validation on my model the references persisted in step 2 are correctly set to internal references of the newly saved model.
I'm using Eclipse Luna SR1.
Kind regards,
Teun
|
|
|
Re: Incorrect references when serializing xtext model [message #1687543 is a reply to message #1687252] |
Thu, 19 March 2015 13:52  |
Eclipse User |
|
|
|
Teun,
Comments below.
On 19/03/2015 4:23 PM, Teun van de Berg wrote:
> Hi,
>
> I observed the following behavior which I suspect is a bug:
> 1) I open a model in the sample reflective ecore editor. This model
> has no external references, has internal references, is valid, and is
> currently persisted in a format defined though xtext.
> 2) I save this model as xmi (modeltype extension).
> The resulting model is invalid. The internal dependencies (references)
> still point to the original xtext objects.
> If, between steps 1 and 2 I execute a validation on my model the
> references persisted in step 2 are correctly set to internal
> references of the newly saved model.
Saving will not resolve proxies so it's likely a case of using proxies
that have not yet been resolved and are saved as is.
> I'm using Eclipse Luna SR1.
>
> Kind regards,
> Teun
|
|
|
Powered by
FUDForum. Page generated in 0.07084 seconds