Skip to content

Conversation

@squirrelFeeder78
Copy link

@squirrelFeeder78 squirrelFeeder78 commented Oct 24, 2025

[INCOMPLETE PR]

What is the purpose of this PR

This PR fixes the flaky test in JSONObjectTest.
There is nondeterminism which causes inconsistent test results. This happens because of ___ value. Using ____may fix the issue.

Reproduce the test failure

Run the test using Non-Dex:

  • mvn clean install
  • mvn clean test edu.illinois:nondex-maven-plugin:2.1.1:nondex
    or
  • mvn clean install
  • mvn test edu.illinois:nondex-maven-plugin:2.1.1:nondex -Dtest=org.json.junit.JSONObjectTest.valueToString

Expected result

The JSONObjectTest passes without NonDex shuffling.
The JSONObjectTest passes with NonDex shuffling.

Actual result

The JSONObjectTest passes without NonDex shuffling.
The JSONObjectTest fails with NonDex shuffling.

Why the test fails

The insert issue does insert issue incorrectly so it accesses data in a non-deterministic way.
.

Fix

For the test, we changed _____ to fix the error regarding non-deterministism.

@sonarqubecloud
Copy link

@stleary
Copy link
Owner

stleary commented Oct 26, 2025

Closing due to no files changed for this PR

@stleary stleary closed this Oct 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants