Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8027181 Type Annotations Cleanup
  3. JDK-8037543

Better method for associating type annotations and tree nodes

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Version:
      8

      Description

      Presently, type annotations and tree nodes are associated using the source position of the tree node. For example, in the following type-annotated cast:

      {code}
      (@A List<@B Integer @C []>) foo
      {code}

      All three annotations must be given the source position of the *cast*, as opposed to the actual annotations. This is misleading, and leads to errors when trying to edit code.

      We should come up with a better way to update the bytecode offsets of type annotations.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            emc Eric Mccorkle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: