Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Special assignment operator bug?
Special assignment operator bug? [message #589459] Fri, 28 May 2010 22:17 Go to next message
Stephen Barrett is currently offline Stephen Barrett
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 03:51 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
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 Aug 20 01:07:51 EDT 2014

Powered by FUDForum. Page generated in 0.35131 seconds