Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsSpecial assignment operator bug?
https://www.eclipse.org/forums/index.php/mv/msg/185773/589459/#msg_589459
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]]>Stephen Barrett2010-05-29T02:17:08-00:00Re: Special assignment operator bug?
https://www.eclipse.org/forums/index.php/mv/msg/185773/589480/#msg_589480
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
>]]>Dimitrios Kolovos2010-05-29T07:51:15-00:00