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

MemoryAccess.setAddress should take Addressable, not MemoryAddress

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-panama
    • Fix Version/s: None
    • Component/s: tools

      Description

      The API design of "Be liberal in what you accept, and conservative in what you send" seems to suggest that, when setting an address value on a segment, we should be more flexible, and accept an Addressable. Conversely, for getters, it is fine to return MemoryAddress.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mcimadamore Maurizio Cimadamore
              Reporter:
              mcimadamore Maurizio Cimadamore
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: