This change will move the instantiation of BadPaddingException into the branch of the if statement where it is thrown. This will decrease the overhead of calling `unpadV15` and `unpadOAEP`. Please see the associated work item for past discussions regarding this change.
The build and tier1 tests pass locally on mac-aarch64. ------------- Commit messages: - instantiate BadPaddingException only when it needs to be thrown Changes: https://git.openjdk.org/jdk/pull/12732/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12732&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8302017 Stats: 6 lines in 1 file changed: 0 ins; 4 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/12732.diff Fetch: git fetch https://git.openjdk.org/jdk pull/12732/head:pull/12732 PR: https://git.openjdk.org/jdk/pull/12732