Skip to content

https://github.com/stleary/JSON-java,fa457a4113d34fe768ebdc6ee39cdcd122ba1596,org.json.junit.XMLTest.testIndentComplicatedJsonObjectWithArrayAndWithConfig #1601

@AJMCS

Description

@AJMCS

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

  1. Checked out commit fa457a4113d34fe768ebdc6ee39cdcd122ba1596 from the stleary/JSON-java repository.

  2. Repeatedly ran the test using NonDex with varying seeds (see command above).

  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions