Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8048805

Request to investigate and update lexer error recovery in javac

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b24
    • Verification:
      Verified

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jlahoda Jan Lahoda
                Reporter:
                sogoel Sonali Goel
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: