Request to investigate and update lexer error recovery in javac

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: tools
    • b24
    • Verified

        During the creation of golden files for negative unicode tests in langtools regression ws (JDK-8044080),
        following diagnostic messages were generated for tools/javac/unicode/TripleQuote.java

        TripleQuote.java:12:14: compiler.err.empty.char.lit
        TripleQuote.java:12:20: compiler.err.empty.char.lit
        TripleQuote.java:12:21: compiler.err.unclosed.char.lit
        TripleQuote.java:13:14: compiler.err.empty.char.lit
        TripleQuote.java:13:15: compiler.err.empty.char.lit
        TripleQuote.java:13:16: compiler.err.unclosed.char.lit
        6 errors

        As per Jon's comments, it looks like poor recovery in lexer that could be improved to make javac work better.

              Assignee:
              Jan Lahoda
              Reporter:
              Sonali Goel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: