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

No positions available for names in com.sun.source.tree.Tree's

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 7u21
    • Fix Version/s: tbd_major
    • Component/s: tools
    • Labels:

      Description

      A variety of com.sun.source.tree.Tree's represent names as Name objects. The SourcePositions class has a way to find source positions for Tree's, but not for Name's. See for instance ClassTree.

      For instance, an Audit program that gives errors in the editor for source code would sometimes like to underline the name of something if it's in error. That Audit program now has to lex the source to attempt to find the position of that name. Instead, it should be available through the com.sun.source.tree.Tree API.

        Attachments

          Activity

            People

            • Assignee:
              jlahoda Jan Lahoda
              Reporter:
              kbronkho Keimpe Bronkhorst
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: