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

javac: No line numbers in compilation error

    Details

    • Subcomponent:
    • Resolved In Build:
      b100
    • Verification:
      Verified

      Backports

        Description

        On 8u65/8u66, the attached Test class shows javac displaying an error but not displaying line numbers associated with the error.

        example output :

        $/java/re/jdk/9/promoted/all/b94/binaries/solaris-sparcv9/bin/javac Test.java
        error: incompatible types: possible lossy conversion from long to int
        Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
        1 error

        Would like the javac compiler to include a line number when it displays this error.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  sadayapalam Srikanth Adayapalam
                  Reporter:
                  shadowbug Shadow Bug
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: