8319966: AIX: expected [[0:i4]] but found [[0:I4]] after JDK-8319882

Reviewed-by: mdoerr
This commit is contained in:
Per Minborg 2023-11-15 13:52:06 +00:00
parent 2e34a2ebf0
commit 4f4d00fa75

View File

@ -32,6 +32,7 @@ import java.lang.invoke.VarHandle;
import java.nio.ByteOrder; import java.nio.ByteOrder;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Locale;
import java.util.function.LongFunction; import java.util.function.LongFunction;
import java.util.stream.Stream; import java.util.stream.Stream;
@ -219,10 +220,10 @@ public class TestLayouts {
@Test @Test
public void testSequenceLayoutWithZeroLength() { public void testSequenceLayoutWithZeroLength() {
SequenceLayout layout = MemoryLayout.sequenceLayout(0, JAVA_INT); 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); 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); SequenceLayout layout2 = MemoryLayout.sequenceLayout(0, JAVA_INT);
assertEquals(layout, layout2); assertEquals(layout, layout2);