Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6078

[jdktools] javac doesn't ouput newline after error/warning output

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • JDK
    • None
    • Linux

    Description

      When the output from javac includes errors/warnings, javac should output a final newline. Currently, the output looks like:

      bash$ javac HelloWorld.java
      ----------
      1. ERROR in HelloWorld.java (at line 1)
      ublic class HelloWorld {
      ^^^^^
      Syntax error on token "ublic", public expected
      ----------
      1 problem (1 error)bash$

      with your prompt getting appended to the error/warning summary line.

      A quick fix would be to just output a trailing newline at exit in all cases but that would output a blank line in the case where there are no errors/warnings which sun javac does not.

      Attachments

        Activity

          People

            Unassigned Unassigned
            hindessm Mark Hindess
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: