Skip to content

Conversation

@AditiS11
Copy link

Fixes: #22916
Update the default value tests to check the
initial value for null-restricted arrays.

@theresa-m theresa-m self-requested a review November 27, 2025 15:31
@theresa-m theresa-m added comp:vm project:valhalla Used to track Project Valhalla related work labels Nov 27, 2025
@Test(priority=4, invocationCount=2)
static public void testInitialValueInNullRestrictedLineArray() throws Throwable {
Object initialStart = makePoint2D.invoke(0, 0);
Object initialEnd = makePoint2D.invoke(0, 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use different values for each point. If these objects are flattened then initialStart and initialEnd will not be distinguishable.

static public void testInitialValueInNullRestrictedTriangleArray() throws Throwable {
Object initialV1 = makePoint2D.invoke(0, 0);
Object initialV2 = makePoint2D.invoke(0, 0);
Object initialLine1 = makeFlattenedLine2D.invoke(initialV1, initialV2);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as the previous comment, please use different values for each point and different points for each line.

Fixes: eclipse-openj9#22916
Update the default value tests to check the
initial value for null-restricted arrays.
@hangshao0
Copy link
Contributor

Jenkins test sanity.functional,extended xlinuxval jdknext

@github-project-automation github-project-automation bot moved this from TODO: VM to Reviewer approved in Valhalla L-World Dec 5, 2025
@hangshao0 hangshao0 merged commit d37de7d into eclipse-openj9:master Dec 5, 2025
6 checks passed
@github-project-automation github-project-automation bot moved this from Reviewer approved to Done in Valhalla L-World Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp:test project:valhalla Used to track Project Valhalla related work

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Unexpected null Object in Array tests caused failures in Valhalla build

3 participants