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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 7-pool, 8
    • Component/s: 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 { } }"

              Assignee:
              Kumar Srinivasan
              Reporter:
              Robert Mckenna
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: