SerializationFragment generating bad code when grammar mixin [message #878273] |
Tue, 29 May 2012 00:50 |
James Leskovar Messages: 2 Registered: May 2011 |
Junior Member |
|
|
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: Tue, 29 May 2012 00:52] Report message to a moderator
|
|
|
Re: SerializationFragment generating bad code when grammar mixin [message #878333 is a reply to message #878273] |
Tue, 29 May 2012 05:13 |
Ed Willink Messages: 7655 Registered: July 2009 |
Senior Member |
|
|
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.04368 seconds