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

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

        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 { } }"

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

                Created:
                Updated:
                Resolved: