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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 7u25, 8
    • 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.

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

                Created:
                Updated:
                Resolved: