Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

StackOverflow when using the maven plugin version 3.4 #28

Closed
campino opened this Issue · 1 comment

2 participants

@campino

Hello,

when running the following grammar through antlr3 using the maven plugin, I get a Stack Overflow. Even if the grammar is faulty, I'd expect an exception/error message instead. Using plugin and runtime version 3.3, I get files generated as expected. This is the stack trace:

Exception in thread "main" java.lang.StackOverflowError
    at java.util.AbstractCollection.addAll(AbstractCollection.java:333)
    at java.util.HashSet.<init>(HashSet.java:117)
    at org.antlr.analysis.SemanticContext.factorOr(SemanticContext.java:753)
    at org.antlr.analysis.SemanticContext.and(SemanticContext.java:609)
    at org.antlr.analysis.SemanticContext.and(SemanticContext.java:616)
    at org.antlr.analysis.SemanticContext.and(SemanticContext.java:616)
    at org.antlr.analysis.SemanticContext.and(SemanticContext.java:616)
    at org.antlr.analysis.SemanticContext.and(SemanticContext.java:616)
    at org.antlr.analysis.SemanticContext.and(SemanticContext.java:616)
    at org.antlr.analysis.SemanticContext.and(SemanticContext.java:616)
    at org.antlr.analysis.SemanticContext.and(SemanticContext.java:616)
    at org.antlr.analysis.SemanticContext.and(SemanticContext.java:616)
    at org.antlr.analysis.SemanticContext.and(SemanticContext.java:616)
    at org.antlr.analysis.SemanticContext.and(SemanticContext.java:616)
    ...
@sharwell sharwell was assigned
@sharwell
Collaborator

Duplicate of antlr/antlr3#20.

@sharwell sharwell closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.