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

Incorrect end position for missing statement

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 10
    • tools
    • b29

      Consider code like:
      {
           if (true)
      }

      (i.e. missing statement after "if"). The if statement will get parsed as "if (true) (ERROR);", which appears OK, but the end position for "(ERROR);" and "(ERROR)" is not set. In addition, due to this, the end pos of the error/diagnostics is -1.

            jlahoda Jan Lahoda
            jlahoda Jan Lahoda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: