Please consider my proposal to add some negative testing to the Debug.java.
Adding a test, that will automatically convert current test cases into a broken parameters and expecting the successful execution, but without a debug result. This approach should keep the simplicity of adding new test cases, as this is happening automatically. ------------- Commit messages: - JDK-8360373: src/java.base/share/classes/sun/security/util/Debug.java implement negative testing Changes: https://git.openjdk.org/jdk/pull/26796/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26796&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8360373 Stats: 72 lines in 1 file changed: 72 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/26796.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/26796/head:pull/26796 PR: https://git.openjdk.org/jdk/pull/26796