-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P3
-
Affects Version/s: 20
-
Component/s: core-libs
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.