Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Special assignment operator bug?
Special assignment operator bug? [message #589459] Sat, 29 May 2010 02:17 Go to next message
Stephen Barrett is currently offline Stephen BarrettFriend
Messages: 46
Registered: May 2010
Member
Hi, I'm playing with the simple mergeoo example, which works fine. Included with the example however, is CopyOO.etl, which gives me a NullPointerException for two statements in two different rules. Both use the special assignment operator:


rule CopyModel
...
t.package ::= s.package;

and

rule CopyClass
...
t.`extends` ::= s.`extends`;


I got around the errors by using the equivalent function:

t.package := s.package.equivalent();
and
t.`extends` := s.`extends`.equivalent();


There are plenty of other uses of ::= in the file, even some statements that are identical to these, but they don't throw any exceptions.

--Stephen
Re: Special assignment operator bug? [message #589480 is a reply to message #589459] Sat, 29 May 2010 07:51 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Stephen,

Could you please file a bug report and attach a minimal configuration
(models, metamodels, transformation) that reproduces this so that I can
have a closer look?

Cheers,
Dimitris

Stephen Barrett wrote:
> Hi, I'm playing with the simple mergeoo example, which works fine.
> Included with the example however, is CopyOO.etl, which gives me a
> NullPointerException for two statements in two different rules. Both use
> the special assignment operator:
>
>
> rule CopyModel
> ...
> t.package ::= s.package;
>
> and
>
> rule CopyClass
> ...
> t.`extends` ::= s.`extends`;
>
>
> I got around the errors by using the equivalent function:
>
> t.package := s.package.equivalent();
> and
> t.`extends` := s.`extends`.equivalent();
>
>
> There are plenty of other uses of ::= in the file, even some statements
> that are identical to these, but they don't throw any exceptions.
>
> --Stephen
>
Previous Topic:EMF Compare-ECL integration
Next Topic:EMF Compare-ECL integration
Goto Forum:
  


Current Time: Wed Apr 24 22:20:05 GMT 2024

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

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

Back to the top