The java/security/Exceptions/ChainingConstructors jdk jtreg test shows quite a lot of code duplication. The test code can be simplified e.g. by using generics. Additionally the test failure output was improved and a test for the constructors of CertPathBuilderException was added.
------------- Commit messages: - JDK-8296406 Changes: https://git.openjdk.org/jdk/pull/11016/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11016&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8296406 Stats: 176 lines in 1 file changed: 10 ins; 149 del; 17 mod Patch: https://git.openjdk.org/jdk/pull/11016.diff Fetch: git fetch https://git.openjdk.org/jdk pull/11016/head:pull/11016 PR: https://git.openjdk.org/jdk/pull/11016