Test and docs only changes: - Add test coverage for HotSpotDiagnosticMXBean.dumpThreads for the stack depth of owned monitors. - Missing comma in threadDump.schema.json, the description of the json format linked to in the API docs. - ThreadDump test library, used by the tests for HotSpotDiagnosticMXBean.dumpThreads, is updated with additional checks of the threadContainers array. Several methods are re-implemented to use streams. - JSONValue will likely go away once the json API is further along. In the mean-time, some small improvements to model boolean and null, some methods to better handle optional members and nulls, and change the runtime exception as IllegalStateException didn't make sense. - Update to one security test that was parsing string values as boolean.
Testing: Tier 1-5. ------------- Commit messages: - Add link to file with schema - Merge branch 'master' into JDK-8380641 - Fix typo in exception message - Initial commit Changes: https://git.openjdk.org/jdk/pull/30379/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30379&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8380641 Stats: 294 lines in 5 files changed: 151 ins; 54 del; 89 mod Patch: https://git.openjdk.org/jdk/pull/30379.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/30379/head:pull/30379 PR: https://git.openjdk.org/jdk/pull/30379
