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

Rework MemoryLayout Sealed Hierarchy

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P2 P2
    • None
    • repo-panama
    • core-libs

      The current MemoryLayout implementation has many good properties.

      However, there are some improvement areas:

      1) It is desirable to allow "patterns in switch statement". It is not possible to obtain totality (other than trivially using default or MemoryLayout itself).
      2) It is desirable to remove the AbstractLayout from the API. Even though this class is package private, it would be a benefit to completely hide its functionality.
      3) it is desirable to generally reduce the public API (various permitted concrete implementations are visible in the public API)

        1. Problems With The Current API.png
          246 kB
          Per-Ake Minborg
        2. One Proposed Soulution.png
          166 kB
          Per-Ake Minborg

            pminborg Per-Ake Minborg
            pminborg Per-Ake Minborg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: