SerializationFragment generating bad code when grammar mixin [message #878273] |
Mon, 28 May 2012 20:50  |
Eclipse User |
|
|
|
Hi there,
Not sure if this was a bug, or if I was just doing something wrong, but I noticed when I'm using a super grammar A from grammar B, and I run the MWE workflow for grammar B, I get a compilation error in AbstractGrammarBSemanticSequencer.java. The failure is with the superSequencerProvider and superSequencer member variables, which are declared with a type that doesn't exist. The type that the serialization fragment generates is "GrammarASemanticSequencer", whereas the class that gets generated by GrammarA's workflow is "AbstractGrammarASemanticSequencer".
I've worked around this temporarily by creating a GrammarASemanticSequencer that extends AbstractGrammarASemanticSequencer.
[Updated on: Mon, 28 May 2012 20:52] by Moderator
|
|
|
Re: SerializationFragment generating bad code when grammar mixin [message #878333 is a reply to message #878273] |
Tue, 29 May 2012 01:13   |
Eclipse User |
|
|
|
Hi
Some issues with derived grammars have been fixed recently, but with a
temporary hiccough for those following N-builds. Make sure you are using
at least Juno RC1.
Regards
Ed Willink
On 29/05/2012 01:50, Missing name Mising name wrote:
> Hi there,
>
> Not sure if this was a bug, or if I was just doing something wrong,
> but I noticed when I'm using a super grammar A from grammar B, and I
> run the MWE workflow for grammar B, I get a compilation error
> AbstractGrammarBSemanticSequencer.java. The failure is with the
> superSequencerProvider and superSequencer member variables, which are
> declared with a type that doesn't exist. The type that the
> serialization fragment generates is "GrammarASemanticSequencer",
> whereas the class that gets generated by GrammarA's workflow is
> "AbstractGrammarASemanticSequencer".
>
> I've worked around this temporarily by creating a
> GrammarASemanticSequencer that extends AbstractGrammarASemanticSequencer.
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.47007 seconds