8319966: AIX: expected [[0:i4]] but found [[0:I4]] after JDK-8319882
Reviewed-by: mdoerr
This commit is contained in:
parent
2e34a2ebf0
commit
4f4d00fa75
@ -32,6 +32,7 @@ import java.lang.invoke.VarHandle;
|
||||
import java.nio.ByteOrder;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.function.LongFunction;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
@ -219,10 +220,10 @@ public class TestLayouts {
|
||||
@Test
|
||||
public void testSequenceLayoutWithZeroLength() {
|
||||
SequenceLayout layout = MemoryLayout.sequenceLayout(0, JAVA_INT);
|
||||
assertEquals(layout.toString(), "[0:i4]");
|
||||
assertEquals(layout.toString().toLowerCase(Locale.ROOT), "[0:i4]");
|
||||
|
||||
SequenceLayout nested = MemoryLayout.sequenceLayout(0, layout);
|
||||
assertEquals(nested.toString(), "[0:[0:i4]]");
|
||||
assertEquals(nested.toString().toLowerCase(Locale.ROOT), "[0:[0:i4]]");
|
||||
|
||||
SequenceLayout layout2 = MemoryLayout.sequenceLayout(0, JAVA_INT);
|
||||
assertEquals(layout, layout2);
|
||||
|
Loading…
Reference in New Issue
Block a user