Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [Bug] Extended properties on nested sequences are silently discarded
[Bug] Extended properties on nested sequences are silently discarded [message #542111] Wed, 23 June 2010 21:38 Go to next message
Eclipse UserFriend
Originally posted by: antonio.garciadominguez.uca.es

Hi all,

I seem to have run into a bug when trying to set extended properties on
sequences that are nested inside other sequences. Basically, the add()
method is called with the unwrapped sequence, so the sequence gets a plain
old List. When it tries to add an extended property, it wraps the object,
adds the property and then - poof - discards the wrapper, so we lose the
property.

I've reported the problem to Bugzilla, since it looks to be a complex issue:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=317753

I've attached a sample EOL script and two different patches with two ways in
which the problem can be solved. I would really appreciate it if someone had
a look at them: I'm not sure which approach would be best.

Cheers,
Antonio
Re: [Bug] Extended properties on nested sequences are silently discarded [message #542265 is a reply to message #542111] Thu, 24 June 2010 11:49 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Antonio,

Thanks! I'll have a look at this and add my comments to the bug report.

Cheers,
Dimitris

Antonio García Domínguez wrote:
> Hi all,
>
> I seem to have run into a bug when trying to set extended properties on
> sequences that are nested inside other sequences. Basically, the add()
> method is called with the unwrapped sequence, so the sequence gets a plain
> old List. When it tries to add an extended property, it wraps the object,
> adds the property and then - poof - discards the wrapper, so we lose the
> property.
>
> I've reported the problem to Bugzilla, since it looks to be a complex issue:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=317753
>
> I've attached a sample EOL script and two different patches with two ways in
> which the problem can be solved. I would really appreciate it if someone had
> a look at them: I'm not sure which approach would be best.
>
> Cheers,
> Antonio
Re: [Bug] Extended properties on nested sequences are silently discarded [message #590381 is a reply to message #542111] Thu, 24 June 2010 11:49 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Antonio,

Thanks! I'll have a look at this and add my comments to the bug report.

Cheers,
Dimitris

Antonio García Domínguez wrote:
> Hi all,
>
> I seem to have run into a bug when trying to set extended properties on
> sequences that are nested inside other sequences. Basically, the add()
> method is called with the unwrapped sequence, so the sequence gets a plain
> old List. When it tries to add an extended property, it wraps the object,
> adds the property and then - poof - discards the wrapper, so we lose the
> property.
>
> I've reported the problem to Bugzilla, since it looks to be a complex issue:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=317753
>
> I've attached a sample EOL script and two different patches with two ways in
> which the problem can be solved. I would really appreciate it if someone had
> a look at them: I'm not sure which approach would be best.
>
> Cheers,
> Antonio
Previous Topic:[Bug] Extended properties on nested sequences are silently discarded
Next Topic:[Feature request] Remove by position in EolSequence
Goto Forum:
  


Current Time: Fri Apr 26 06:30:20 GMT 2024

Powered by FUDForum. Page generated in 0.02839 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top