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

PaddingLayout unable to return byteAlignment value

XMLWordPrintable

      Reproduce:

      MemoryLayout.paddingLayout(8).byteAlignment()
      | Exception java.lang.UnsupportedOperationException: Cannot compute byte alignment; bit alignment is not a multiple of 8
      | at MemoryLayout.lambda$byteAlignment$0 (MemoryLayout.java:234)
      | at Utils.bitsToBytesOrThrow (Utils.java:97)
      | at MemoryLayout.byteAlignment (MemoryLayout.java:233)
      | at (#5:1)

      Also, the allowed valued for bit alignments shall be specified in both javadoc and impl.

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

              Created:
              Updated:
              Resolved: