-
Bug
-
Resolution: Fixed
-
P3
-
20
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.
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.