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

Incorrect positions for MemberReference

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8, 9
    • tools

      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).

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

              Created:
              Updated: