RFR: 8296408: Make the PCSCException public accessible
Weijun Wang
weijun at openjdk.org
Thu Nov 17 20:35:23 UTC 2022
On Mon, 7 Nov 2022 05:55:18 GMT, Johannes Waigel <duke at openjdk.org> wrote:
> The `PCSCException` is thrown, but the error type is not visible due to the "private-packe" access rule.
> By changing the visibility it is possible to handle / access this exception type explicitly in the catch.
Making an exception public is only useful if you want to catch it after calling a public API. Since it does not appear in any of the throws clause in the public APIs, is there a place where it might be the cause of an exception and you're thinking about using `getCause() instanceof PSCSException pe` to drill into it?
-------------
PR: https://git.openjdk.org/jdk/pull/11012
More information about the security-dev
mailing list