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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 7u21
    • tools

      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.

            jlahoda Jan Lahoda
            kbronkho Keimpe Bronkhorst (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: