Skip to content

Commit 83533e1

Browse files
authored
Merge pull request eclipse-openj9#20560 from hangshao0/valueObject
Add a test case for System.identityHashCode in Valhalla
2 parents 85c22f8 + 36c387e commit 83533e1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

test/functional/Valhalla/src_lw5/org/openj9/test/lworld/ValueTypeTests.java

+1
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,7 @@ static public void testValueClassHashCode() throws Throwable {
732732
assertNotEquals(h1, h3);
733733
assertNotEquals(h1, h4);
734734
assertNotEquals(h1, h5);
735+
assertEquals(h1, System.identityHashCode(p1));
735736
}
736737

737738
//*******************************************************************************

test/functional/Valhalla/src_qtypes/org/openj9/test/lworld/ValueTypeTests.java

+1
Original file line numberDiff line numberDiff line change
@@ -2857,6 +2857,7 @@ static public void testValueClassHashCode() throws Throwable {
28572857
assertNotEquals(h1, h3);
28582858
assertNotEquals(h1, h4);
28592859
assertNotEquals(h1, h5);
2860+
assertEquals(h1, System.identityHashCode(p1));
28602861
}
28612862

28622863
@Test(priority = 1, expectedExceptions = ClassFormatError.class,

0 commit comments

Comments
 (0)