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

javac handles diagnostics for last line badly, if line not terminated by newline

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 6, 7
    • tools
    • None
    • b25
    • generic
    • generic
    • Verified

      If an error occurs in the last line of a file that is not terminated with newline, javac adds garbage characters to the end of the line when displaying the line of code in a diagnostic.

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: