org.antlr.v4.runtime.misc.ParseCancellationException: offending symbol: [@2512,18234:18234=')',<58>,236:44]line 236:44 extraneous input ')' expecting {'++', '--'}, e=null

GitHub | mscinar | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Java8.g gives ParseError on generated Java8Parser

    GitHub | 6 months ago | mscinar
    org.antlr.v4.runtime.misc.ParseCancellationException: offending symbol: [@2512,18234:18234=')',<58>,236:44]line 236:44 extraneous input ')' expecting {'++', '--'}, e=null

    Root Cause Analysis

    1. org.antlr.v4.runtime.misc.ParseCancellationException

      offending symbol: [@2512,18234:18234=')',<58>,236:44]line 236:44 extraneous input ')' expecting {'++', '--'}, e=null

      at de.cinarconsulting.antlr4.ThrowingErrorListener.syntaxError()
    2. de.cinarconsulting.antlr4
      ThrowingErrorListener.syntaxError
      1. de.cinarconsulting.antlr4.ThrowingErrorListener.syntaxError(ThrowingErrorListener.java:24)[classes/:?]
      1 frame
    3. ANTLR 4 Runtime
      DefaultErrorStrategy.sync
      1. org.antlr.v4.runtime.ProxyErrorListener.syntaxError(ProxyErrorListener.java:65)[antlr4-runtime-4.5.3.jar:4.5.3]
      2. org.antlr.v4.runtime.Parser.notifyErrorListeners(Parser.java:564)[antlr4-runtime-4.5.3.jar:4.5.3]
      3. org.antlr.v4.runtime.DefaultErrorStrategy.reportUnwantedToken(DefaultErrorStrategy.java:375)[antlr4-runtime-4.5.3.jar:4.5.3]
      4. org.antlr.v4.runtime.DefaultErrorStrategy.sync(DefaultErrorStrategy.java:273)[antlr4-runtime-4.5.3.jar:4.5.3]
      4 frames
    4. de.cinarconsulting.antlr4
      Java8Parser.compilationUnit
      1. de.cinarconsulting.antlr4.Java8Parser.postfixExpression(Java8Parser.java:17956)[classes/:?]
      2. de.cinarconsulting.antlr4.Java8Parser.postIncrementExpression(Java8Parser.java:18002)[classes/:?]
      3. de.cinarconsulting.antlr4.Java8Parser.statementExpression(Java8Parser.java:9935)[classes/:?]
      4. de.cinarconsulting.antlr4.Java8Parser.statementExpressionList(Java8Parser.java:11199)[classes/:?]
      5. de.cinarconsulting.antlr4.Java8Parser.forUpdate(Java8Parser.java:11151)[classes/:?]
      6. de.cinarconsulting.antlr4.Java8Parser.basicForStatement(Java8Parser.java:10950)[classes/:?]
      7. de.cinarconsulting.antlr4.Java8Parser.forStatement(Java8Parser.java:10798)[classes/:?]
      8. de.cinarconsulting.antlr4.Java8Parser.statement(Java8Parser.java:9390)[classes/:?]
      9. de.cinarconsulting.antlr4.Java8Parser.blockStatement(Java8Parser.java:9175)[classes/:?]
      10. de.cinarconsulting.antlr4.Java8Parser.blockStatements(Java8Parser.java:9102)[classes/:?]
      11. de.cinarconsulting.antlr4.Java8Parser.block(Java8Parser.java:9041)[classes/:?]
      12. de.cinarconsulting.antlr4.Java8Parser.staticInitializer(Java8Parser.java:6188)[classes/:?]
      13. de.cinarconsulting.antlr4.Java8Parser.classBodyDeclaration(Java8Parser.java:3642)[classes/:?]
      14. de.cinarconsulting.antlr4.Java8Parser.classBody(Java8Parser.java:3564)[classes/:?]
      15. de.cinarconsulting.antlr4.Java8Parser.normalClassDeclaration(Java8Parser.java:3140)[classes/:?]
      16. de.cinarconsulting.antlr4.Java8Parser.classDeclaration(Java8Parser.java:3025)[classes/:?]
      17. de.cinarconsulting.antlr4.Java8Parser.typeDeclaration(Java8Parser.java:2959)[classes/:?]
      18. de.cinarconsulting.antlr4.Java8Parser.compilationUnit(Java8Parser.java:2483)[classes/:?]
      18 frames
    5. de.cinarconsulting.data
      JavaToTokenMain.processFile
      1. de.cinarconsulting.data.JavaToTokenMain.processJava(JavaToTokenMain.java:119)[classes/:?]
      2. de.cinarconsulting.data.JavaToTokenMain.processFile(JavaToTokenMain.java:55)[classes/:?]
      2 frames