I am using the golang/GoLexer.g4, golang/GoParser.g4 and golang/Java/GoParserBase.java with the following code snippet:
The GoParser::importDecl method crashes with the following stack trace:
java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 0
at org.antlr.parser.golang.GoParserBase.addImportSpec(GoParserBase.java:66)
at org.antlr.parser.golang.GoParser.importSpec(GoParser.java:549)
at org.antlr.parser.golang.GoParser.importDecl(GoParser.java:471)