1. NonDex Config File:
nondexFilter=.*
nondexMode=FULL
nondexSeed=974622
nondexStart=0
nondexEnd=9223372036854775807
nondexPrintstack=false
nondexDir=${projectDir}/.nondex
nondexJarDir=${projectDir}/.nondex
nondexExecid=bGopgs1ZaYGXiUcdlImS6xibSfAmYPWRGXL8nBa7nmE=
nondexLogging=CONFIG
test=
2. Command Used to Run Test
mvn edu.illinois:nondex-maven-plugin:2.1.1:nondex \
-Dtest=org.json.junit.XMLTest#testIndentComplicatedJsonObjectWithArrayAndWithConfig
3. Steps to Reproduce Flakiness
-
Checked out commit fa457a4113d34fe768ebdc6ee39cdcd122ba1596 from the stleary/JSON-java repository.
-
Repeatedly ran the test using NonDex with varying seeds (see command above).
-
Observed intermittent test failures under different execution orders.
4. Notes
The test XMLTest#testIndentComplicatedJsonObjectWithArrayAndWithConfig fails intermittently due to non-deterministic key ordering in nested JSONObject instances. This leads to differences in the generated XML structure, causing .similar() assertions to fail despite equivalent logical structure.