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

javac doesn't fill in end position for some errors of type not found

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • 7-pool, 8
    • tools
    • b102
    • Verified

    Backports

      Description

        Run the test attached, it runs Javac through JSR199. It should print a start and end position (of the diagnostic) larger than 0, but it prints -1 as the end position.
        The code Javac compiles looks like this (the error for 'B' has no end position):
        "public class Test{ Object o = new A().new B(); class A { } }"

        Attachments

          Issue Links

            Activity

              People

                ksrini Kumar Srinivasan
                robm Robert Mckenna
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: