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

Incorrect positions for MemberReference

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 8, 9
    • Fix Version/s: tbd_minor
    • Component/s: tools
    • Labels:

      Description

      The start/end/"preferred" positions for the JCMemberReference needs to be updated. The current state has several problems:
      -member references does not have handling in TreeInfo.getStartPos, and so the starting position of the MemberRef with annotated expression is inside the MemberRef's 'expr'. This causes TreePosTest failures.
      -the "preferred" .pos of the MemberRef should point to the '::'.
      -the end pos set to the MemberRef's expr when the expr is an annotated type is wrong (the annotated expr spans to the end of the MemberRef).

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: