Javac doesn't fill in end position for uninitialized variable errors

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 7u25, 8
    • Component/s: tools
    • b102
    • Verified

        Javac accessed through JSR199 doesn't give the end position and it gives the wrong start position for some uninitialized variable errors. The start position of the error points to 'class' of the enclosing class of the variable. Compile and run the program below, it should print 2 errors with valid start/end positions and point to the usage and definition of the variable. Instead, the second error has no end position and doesn't point to the variable definition.

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

                Created:
                Updated:
                Resolved: