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

Error includes trailing garbage

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      Create a source file with one line (and not end-of-line character)
      that contains an error:

      class Test extends Missing {}

      The compiler includes garbage in the diagnostic:

      class Test extends Missing {}\u001a\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000
                         ^

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jjg Jonathan Gibbons
                Reporter:
                ahe Peter Ahe
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: