I think I understand the reason why `ClassCastException` will be thrown, but it is not a common case, in other words, we usually only use `AntlrParserPluginFactory` and `Antlr4ParserPluginFactory`. Anyway, we should tweak the code.
Cheers, Daniel.Sun ----- Apache Groovy committer & PMC member Blog: http://blog.sunlan.me Twitter: @daniel_sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html