This change refactors the RSAPadding class to return an output record containing the status instead of relying on exception object to indicate a failure.
Thanks in advance for review~ Valerie ------------- Commit messages: - 8302017: Allocate BadPaddingException only if it will be thrown Changes: https://git.openjdk.org/jdk/pull/14839/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14839&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8302017 Stats: 179 lines in 5 files changed: 107 ins; 23 del; 49 mod Patch: https://git.openjdk.org/jdk/pull/14839.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/14839/head:pull/14839 PR: https://git.openjdk.org/jdk/pull/14839